Skip to content
Reference > Classes

Float

Definition

Float var = .... ;

Extends

Extended By

None

Description

A number of type Float.

Method Summary

Owner Name Return Type Description
Float constructor(f) Object Initialize a Float object.
Float byteValue() Byte Returns the value of this Float as a byte after a narrowing primitive conversion.
Object getClassName() String Returns the string name of this object's class type.
Float isFinite() Boolean Returns true if this Float is a finite floating-point value; returns false otherwise (for NaN and infinity arguments).
Float isInfinite() Boolean Returns true if this Float is infinitely large in magnitude, false otherwise.
Float isNaN() Boolean Returns true if this Float instance is a Not-a-Number (NaN) value, false otherwise.
Object toJson() String Returns a json representation of this object.

Method Definitions


constructor(f)

Float float = new Float(Float f)

Description

Initialize a Float object.

Parameter Definition

Name Type Description
f Float  a Float

byteValue()

Byte Float::byteValue()

Description

Returns the value of this Float as a byte after a narrowing primitive conversion.


isFinite()

Boolean Float::isFinite()

Description

Returns true if this Float is a finite floating-point value; returns false otherwise (for NaN and infinity arguments).


isInfinite()

Boolean Float::isInfinite()

Description

Returns true if this Float is infinitely large in magnitude, false otherwise.


isNaN()

Boolean Float::isNaN()

Description

Returns true if this Float instance is a Not-a-Number (NaN) value, false otherwise.