toInteger (Conversion to large integer)
See also: toBigDecimal (Konvertierung in Große Dezimalzahl), toLong (Conversion to large integer), toNumber (Conversion to native number), toString (Konvertieren in ein
Attempts to convert a given input value into an integer of the 'Integer' type.
Syntax
$toInteger(any)
Parameter
Name |
Description |
any |
An arbitrary value (or object), which will be converted |
Return value
If the input value cannot be converted, nothing (null ) is returned.
Examples
Syntax |
Result |
$toInteger(1234) |
Returns an object of the 'Integer' type, which has the numeric value 1234 |
$toInteger($input) |
Tries to convert the input value of the expression |