Adds two values.

Syntax

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

Returns

The sum of Value1 and Value2.

Remarks

The ADD operation returns the sum of Value1 and Value2.

Example

// Add PI to E 
Val1 = "3.1415926535897932384626433832795" 
Val2 = "2.7182818284590452353602874713527" 
Result = SRP_Math("ADD", Val1, Val2) 
!! Result = 5.8598744820488384738229308546322 !! 
 
// Perform the same addition, but round to 4 decimal places 
Result = SRP_Math("ADD", Val1, Val2, 4) 
!! Result = 5.8599 !!
  • No labels