function IntToSingle(const X: integer): single; overload;
Integer to single conversion.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | integer |
Returns: single - X converted exactly to single precision (direct conversion, cvtsi2ss on x64 - no double intermediate). A Single(X) value cast is rejected (E2089) by compilers before D37, and a bare integer mixed into a single expression otherwise computes at extended/double width. Named distinctly from ToSingle(double) so that function's existing call sites keep their overload-free resolution.