Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
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

Code Block
// get the absolute value of negative PI 
Val = "-3.1415926535897932384626433832795" 
Result = SRP_Math("ABSOLUTEVALUE", Val) 
!! Result = "3.1415926535897932384626433832795" !! 

...