Difference between revisions of "SHIP:Sail:itol"

From Serious Documentation
Jump to: navigation, search
(Created page with "__NOTOC__ {{SailFuncTableStart|}}<onlyinclude> |{{SailFunc|itol}}||{{DataType|Integer}}||style="text-align:center;"|v5.0||Explicitly casts an {{DataType|Integer}} to a {{DataT...")
 
Line 38: Line 38:
 
|}
 
|}
  
[[Categories: Numeric Functions]]
+
[[Category:Numeric Functions]]

Revision as of 15:06, 10 October 2016

Function Returns Introduced Description
itol Integer v5.0 Explicitly casts an Integer to a Long Badge SHIPv5.gif

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