Versions Compared

Key

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

...

The SUBTRACT operation subtracts Value1 by Value2 and returns the result. You can use SUB for short.

Example

 
Code Block
// Subtract PI by E 
Val1 = "3.1415926535897932384626433832795" 
Val2 = "2.7182818284590452353602874713527" 
Result = SRP_Math("SUBTRACT", Val1, Val2) 
!! Result = 0.4233108251307480031023559119268 !!

...

Code Block
// Perform the same subtraction, but round to 6 decimal places 
Result = SRP_Math("SUB", Val1, Val2, 6) 
!! Result = 0.423311 !!

 

...