You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Subtracts two values.

Syntax

Result = SRP_Math("SUBTRACT", Value1, Value2, DecimalPlaces, ScientificNotation)

Returns

The difference of Value1 subtracted by Value2.

Remarks

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

Example

 
// Subtract PI by E 
Val1 = "3.1415926535897932384626433832795" 
Val2 = "2.7182818284590452353602874713527" 
Result = SRP_Math("SUBTRACT", Val1, Val2) 
!! Result = 0.4233108251307480031023559119268 !!
 
// Perform the same subtraction, but round to 6 decimal places 
Result = SRP_Math("SUB", Val1, Val2, 6) 
!! Result = 0.423311 !!

 

 

  • No labels