ToNumeric
Cast a value to a number.
Method Signature
Arguments
Argument
Type
Required
Description
Default
value
string
true
The value to cast.
radix
any
false
The radix to use when casting the value. Valid values are 2-36, "bin", "oct", "dec", and "hex".
Examples
Cast a string to a number.
Result: 29.5
Cast a hex-value to a number.
Result: 16711697
Cast a binary-value to a number.
Result: 10
Additional Examples
Related
Last updated
Was this helpful?