Abs()

Absolute-value function. The absolute value of a number is the number without its sign.

Abs( number=number );

Returns: Number

Argument Description
number
number, required

Number to find the absolute value of

Examples

absVal = abs( 1 );
dump( absVal );

absVal = abs( 1.1 ); dump( absVal );

absVal = abs( -1 ); dump( absVal );

absVal = abs( -1.1 ); dump( absVal );

See also