toNumber (Conversion to native number)
See also: toString (Convert to a string), toBigDecimal (Konvertierung in Große Dezimalzahl), toLong (Konvertierung in große Ganzzahl), toInteger (Conversion to large integer)
Attempts to convert a given input value into a native number of type 'Number' (Javascript/Client).
For example, a native number is also used by the JSON format.
Syntax
$toNumber(any)
Parameter
Name |
Description |
any |
Any value (or object), which will be converted |
Return value
If the input value cannot be converted, nothing ( null ) is returned.
Examples
Syntax |
Result |
$toNumber(1234.5) |
Returns a native javascript number with value 1234.5 |
$toNumber($input) |
Tries to convert the input value of the expression |