abs

Syntax

int abs(int number)

Arguments

number
Any integer number.

Return

The absolute value of the suplied argument.

Description

Returns the absolute value of an integer number. When supplied with a negative number, this function will return a positive number of equal distance from zero.

Example

%ffp

OnFilterStart:
{
    Info("The absolute value of -10 is %d", abs(-10));
}

Also see

fabs