SHIP:Sail:itod

From Serious Documentation
Revision as of 14:38, 7 October 2016 by CarltonHeyer (talk | contribs) (Created page with "__NOTOC__ {{SailFuncTableStart|}}<onlyinclude> |{{SailFunc|itod}}||{{DataType|Double}}||style="text-align:center;"|v5.1.0||Explicitly casts an {{DataType|Integer}} to a {{Data...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function Returns Introduced Description
itod Double v5.1.0 Explicitly casts an Integer to a Double Badge SHIPv5.gif

See Also:

Prototype

Double itod(Integer n);

Parameters/Return Value

Parameter Data Type Description
n Integer the number to cast
Return Double the double precision floating point version of the supplied number

Detailed Description

The itod() function explicitly casts the supplied Integer to a Double. You may want to use this in mathematical expressions around items so that the expression evaluation is moved into the double precision floating point domain.

Examples

Example Result Notes
itod(-5); -5.0
itod(5); 5.0

Categories: Numeric Functions