float IntToSingle(const int X);
Integer to single conversion.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | const int |
Returns: 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.
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler