Converts specified value to decimal number.



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.


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")
Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
How Can We Improve This Article?