tolong
The tolong
function converts the input to a value of type long
(int
).
Syntax
tolong( Expression )
Arguments
- Expression: Expression to convert to a value of type
long
.
Returns
If the type conversion is successful, returns a long
number. Decimal places are truncated.
If the type conversion fails, returns null
.
Example
tolong(123)
returns123
tolong("123.456")
returns123
tolong("abc")
returnsnull