Returns the exponent component of a value.

Syntax

Result = SRP_Math("EXPONENT", Value, "", DecimalPlaces, ScientificNotation)

Returns

The exponent of Value.

Remarks

The EXPONENT operation extracts the exponent value from Value. Not to be confused with "EXP", which performs the exponential equation, this operation parses out the value's exponent. The exponent is the number that will appear on the right side of "E" when Value is represented in scientific notation.

Take for example the number 364.87451. In scientific notation, the number is:

3.6487451E+2

Therefore, passing 364.87451 to the EXPONENT operation returns 2.

Example

// Extract the exponent of 364.87451 
Result = SRP_Math("EXPONENT", "364.87451") 
!! Result = 2 !! 
// Extract the exponent of PI  
Val = "3.1415926535897932384626433832795" 
Result = SRP_Math("EXPONENT", Val) 
!! Result = 0 !!
  • No labels