ToNumber
Converts specified value to decimal number.
Syntax
ToNumber("value");
Function arguments
- value – (String) The value to be converted to decimal
Return value
This function returns Decimal. Returns value converted to decimal type. If conversion was not possible, error is thrown.
Examples
Example 1: This will convert text value '213′ to a decimal number value.
numVal = ToNumber("213");
Example 2: This will throw an error since 'abc’ has no decimal representation and cannot be converted to decimal number.
numVal = ToNumber("abc")