Versions Compared

Key

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

...

The NEGATE operation negates Value and returns the results. If Value was negative, the result is positive and vice versa. You can use NEG for short.

Example

 
Code Block
// Negate PI 
Val = "3.1415926535897932384626433832795" 
Result = SRP_Math("NEGATE", Val) 
!! Result = -3.1415926535897932384626433832795 !! 
 

...

Code Block
// Negate it again 
Result = SRP_Math("NEG", Result) 
!! Result = 3.1415926535897932384626433832795 !!

 

...