SHIP:Sail:itod

From Serious Documentation
Jump to: navigation, search
Function Returns Introduced Description
itod Double v5.1.0 Explicitly casts an Integer to a Double

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