long

Syntax

long(X)

Arguments

X can be of any data type.

Details

Convert the data type of X to LONG.

Examples

x=long();
x;
// output: 00l

typestr x;
// output: LONG

long(`10.9);
// output: 10

long(9223372036854775807l);
// output: 9223372036854775807

long(9223372036854775808l);
// output: 9223372036854775807
// maximum value for a LONG is 2^63-1=9223372036854775807