Android Guides | Samples

Java.Lang.Float.FloatToIntBits Method

Returns an integer corresponding to the bits of the given single precision float value.

Syntax

[Android.Runtime.Register("floatToIntBits", "(F)I", "")]
public static Int32 FloatToIntBits (Single value)

Parameters

value

Remarks

Returns an integer corresponding to the bits of the given single precision float value. All Not-a-Number (NaN) values are converted to a single NaN representation (0x7fc00000) (compare to Float.FloatToRawIntBits(Single)).

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1