Math387.IntToSingle Method

Single IntToSingle(Int32 X)

Integer to single conversion.

#NameTypeDescription
1XInt32

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.