Abs()
Absolute-value function. The absolute value of a number is the number without its sign.
Abs( number=number );
Returns: Number
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
- Numbers
- numeric.abs()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)