Core Function Abs
From Sputnik Wiki
Abs( <expression> )
Contents |
Description
Calculates the absolute value of a number.
Parameters
expression
Any valid numeric expression.
Return Value
Returns absolute value of expression.
Remarks
A string has a value of zero.
Example
$var = Abs(-123.45); println( "Value is: $var" ); // value is 123.45