Android Guides | Samples

Java.Lang.Float Class

The wrapper for the primitive type float.

See Also: Float

Syntax

[Android.Runtime.Register("java/lang/Float", DoNotGenerateAcw=true)]
public sealed class Float : Number, IComparable, IConvertible, IDisposable

Remarks

The wrapper for the primitive type float.

See Also

[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

The members of Java.Lang.Float are listed below.

See Also: Number

Public Constructors

Constructs a new Float with the specified primitive double value.
Constructs a new Float with the specified primitive float value.
Constructs a new Float from the specified string.

Public Fields

const
SizeInt32 (32). Constant for the number of bits needed to represent a float in two's complement form.

Public Properties

[read-only]
IsInfiniteBoolean. Indicates whether this object represents an infinite value.
[read-only]
IsNaNBoolean. Indicates whether this object is a Not-a-Number (NaN) value.
[read-only]
static
MaxExponentInt32. Maximum base-2 exponent that a finite value of the float type may have.
[read-only]
static
MinExponentInt32. Minimum base-2 exponent that a normal value of the float type may have.
[read-only]
static
MinNormalSingle. Constant for the smallest positive normal value of the float type.
[read-only]
static
TypeClass. The Class object that represents the primitive type float.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
Compare(Single, Single) : Int32
Compares the two specified float values.
CompareTo(Float) : Int32
Compares this object to the specified float object to determine their relative order.
override
DoubleValue() : Double
Returns this object's value as a double.
static
FloatToIntBits(Single) : Int32
Returns an integer corresponding to the bits of the given single precision float value.
static
FloatToRawIntBits(Single) : Int32
Returns an integer corresponding to the bits of the given single precision float value.
override
FloatValue() : Single
Gets the primitive value of this float.
static
IntBitsToFloat(Int32) : Single
Returns the single precision float corresponding to the given bits.
override
IntValue() : Int32
Returns this object's value as an int.
static
InvokeIsInfinite(Single) : Boolean
Indicates whether the specified float represents an infinite value.
static
InvokeIsNaN(Single) : Boolean
Indicates whether the specified float is a Not-a-Number (NaN) value.
override
LongValue() : Int64
Returns this object's value as a long.
static
ParseFloat(String) : Single
Parses the specified string as a float value.
static
ToHexString(Single) : String
Converts the specified float into its hexadecimal string representation.
static
ToString(Single) : String
Returns a string containing a concise, human-readable description of the specified float value.
static
ValueOf(Single) : Float
Returns a Float instance for the specified float value.
static
ValueOf(String) : Float
Parses the specified string as a float value.

Public Operators

Explicitly Implemented Interface Members