Method AsInt
AsInt(float)
Converts the specified single-precision floating-point number to its equivalent 32-bit integer representation.
public static int AsInt(float value)
Parameters
valuefloatThe single-precision floating-point number to convert.
Returns
- int
The 32-bit integer representation of the specified floating-point number.
Remarks
This method performs a bitwise reinterpretation of the floating-point value as an integer. The result depends on the internal binary representation of the input value.