Difference between revisions of "SHIP:Sail:itod"

From Serious Documentation
Jump to: navigation, search
(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...")
 
Line 38: Line 38:
 
|}
 
|}
  
[[Categories: Numeric Functions]]
+
[[Category:Numeric Functions]]

Revision as of 15:04, 10 October 2016

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