SHIP:Sail:ftod

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

See Also:

Prototype

Double dtof(Float n);

Parameters/Return Value

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

Detailed Description

The dtof() function explicitly casts the supplied Float to an Double. You may want to use this in mathematical expressions around items where precision needs to be increased.


Examples

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