Returns the absolute value of a value.
Syntax
Result = SRP_Math("ABSOLUTEVALUE", Value, "", DecimalPlaces, ScientificNotation)
Returns
The absolute value of Value.
Remarks
The ABSOLUTEVALUE operation returns the absolute value of Value. If Value is negative, then the result is the negation of Value. If Value is positive, then the result is Value. If Value is zero, then the result is zero. In other words, the result is always the positive version of Value.
Example
// get the absolute value of negative PI Val = "-3.1415926535897932384626433832795" Result = SRP_Math("ABSOLUTEVALUE", Val) !! Result = "3.1415926535897932384626433832795" !!
// you can also get away with abbreviating the operation Result = SRP_Math("ABS", Val)