Table of Contents

Method AsInt

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

AsInt(float)

Converts the specified single-precision floating-point number to its equivalent 32-bit integer representation.

public static int AsInt(float value)

Parameters

value float

The 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.