absolute
Description
Returns the absolute value of a number.
Usage
Client side: Y
Server side: Y
Syntax
Number absolute(Number number)
Argument
number
The number to be calculated. The argument can by any number.
Return
Returns the absolute value of the argument. If the number is empty (null), on server side, 0 will be returned, on client side, empty will be returned.
Example
absolute(15.6)
returns 15.6
absolute(-15.6)
returns 15.6
See also