Link Search Menu Expand Document

abs

Explanation Find the absolute value of the number.
Call format var a = abs (arg)
Return value Returns the absolute value of the number given by the argument.
Arguments Number arg Numerical value for absolute value
Exception None
Example of use
    var a;
    var b;
    b = -123;
    a = abs(b);    /* a becomes 123 */
    
Related item sign method