double IntToDouble(const int X);
Converts an integer to double.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | const 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