Math387::IntToDouble Function

double IntToDouble(const int X);

Converts an integer to double.

#NameTypeDescription
1Xconst int

Returns: X as a double. Delphi's / is always real division, so this conversion is redundant natively; it is required where BOTH operands of a division are integers, because the C# translation of / follows C# rules and would truncate. Named to match IntToSingle.

Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler