fabs

Syntax

double fabs(double number)

Arguments

number
Any double or float number.

Return

The absolute value of the suplied argument.

Description

Returns the absolute value of a double or float 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 -1.23 is %f", abs(-1.23));
}

Also see

abs