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;
00l
$ typestr x;
LONG

$ long(`10.9);
10

$ long(9223372036854775807l);
9223372036854775807

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