Divides two values.
Syntax
Result = SRP_Math("DIVIDE", Value1, Value2, DecimalPlaces, ScientificNotation)
Returns
The quotient of Value1 divided by Value2.
Remarks
The DIVIDE operation divides Value1 by Value2 and returns the result. Value2 cannot be zero, else the following error is returned:
"ERROR: Cannot divide by zero."
You can use DIV for short.
Example
// Divide PI by 3 Val1 = "3.1415926535897932384626433832795" Val2 = "3" Result = SRP_Math("DIVIDE", Val1, Val2) !! Result = 1.04719755119659774615421446109316 !!
// Divide the 3/6/08 national debt by the estimated population Debt = "9382669724008.03" Population = "303574006" Result = SRP_Math("DIV", Debt, Population) !! Result = 30907.3555000227193365165790907670797 !!