Math387.IntToDouble Method

function IntToDouble(const X: Integer): Double;

Converts an integer to double.

#NameTypeDescription
1XInteger

Returns: Double - 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.