Difference between revisions of "SHIP:Sail:ftod"

From Serious Documentation
Jump to: navigation, search
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
{{SailFuncTableStart|}}<onlyinclude>
 
{{SailFuncTableStart|}}<onlyinclude>
|{{SailFunc|ftod}}||{{DataType|Integer}}||style="text-align:center;"|v5.1.0||Explicitly casts an {{DataType|Float}} to a {{DataType|Double}} {{v5}}</onlyinclude>
+
|{{SailFunc|ftod}}||{{DataType|Integer}}||style="text-align:center;"|v5.1.0||Explicitly casts an {{DataType|Float}} to a {{DataType|Double}}</onlyinclude>
 
|}
 
|}
 
== See Also: ==
 
== See Also: ==

Latest revision as of 17:21, 13 October 2016

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