Returns the number of significant digits in a value.
Syntax
Result = SRP_Math("SIGDIGITS", Value, "", DecimalPlaces, ScientificNotation)
Returns
The number of significant digits in Value.
Remarks
The SIGDIGITS operation returns the number of significant digits in Value. Significant digits are the digits necessary to accurately represent the number's value. Therefore, leading zeros and trailing decimal zeros are not significant digits. Note that the count of digits is returned, not the digits themselves.
You can use SIGDIG for short.
Example
// Count the significant digits of 000000364.8745100000 Result = SRP_Math("SIGDIGITS", "000000364.8745100000") !! Result = 8 !!
// Count the significant digits of PI Val = "3.1415926535897932384626433832795" Result = SRP_Math("SIGDIG", Val) !! Result = 32 !!