Math387::IntToSingle Function

float IntToSingle(const int X);

Integer to single conversion.

#NameTypeDescription
1Xconst 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