SHIP:Sail:itol

From Serious Documentation
Jump to: navigation, search
Function Returns Introduced Description
itol Integer v5.0 Explicitly casts an Integer to a Long

See Also:

Prototype

Long itol(Integer n);

Parameters/Return Value

Parameter Data Type Description
n Integer the number to cast
Return Long the long version of the supplied number

Detailed Description

The itol() function explicitly casts the supplied Integer to an Long. You may want to use this in mathematical expressions around items so that the expression evaluation is moved to 64 bit precision instead of 32 bits.

Examples

Example Result Notes
itol(-5); -5.0 Represented internally via 64 bits
itol(5); 5.0 Represented internally via 64 bits