Type Hierarchy:
Satisfied Interfaces: Comparable<Other>, Exponentiable<Float,Float>, Invertable<Other>, Number, Numeric<This>, Scalar<Float>, Summable<Other>

An IEEE 754 64-bit floating point number. A Float is capable of approximately representing numeric values between 2-1022 and (2-2-52)×21023, along with the special values infinity and -infinity, and undefined values (Not a Number). Zero is represented by distinct instances +0, -0, but these instances are equal. An undefined value is not equal to any other value, not even to itself.

Initializer
Float(Float float)
Attributes
finiteSource Code
shared Boolean finite

Determines whether this value is finite. Produces false for infinity, -infinity, and undefined.

See also: infinite, infinity
infiniteSource Code
shared Boolean infinite

Determines whether this value is infinite in magnitude. Produces true for infinity and -infinity. Produces false for a finite number, +0, -0, or undefined.

See also: infinity, finite
negativeSource Code
shared actual Boolean negative

Determines if this value is a negative number or -infinity. Produces false for a positive number, +0, -0, or undefined.

Refined declaration: negative
positiveSource Code
shared actual Boolean positive

Determines if this value is a positive number or infinity. Produces false for a negative number, +0, -0, or undefined.

Refined declaration: positive
signSource Code
shared actual Integer sign

The sign of this value. Produces 1 for a positive number or infinity. Produces -1 for a negative number or -infinity. Produces 0 for +0, -0, or undefined.

Refined declaration: sign
strictlyNegativeSource Code
shared Boolean strictlyNegative

Determines if this value is a negative number, -0, or -infinity. Produces false for a positive number, +0, or undefined.

strictlyPositiveSource Code
shared Boolean strictlyPositive

Determines if this value is a positive number, +0, or infinity. Produces false for a negative number, -0, or undefined.

undefinedSource Code
shared Boolean undefined

Determines whether this value is undefined (that is, Not a Number or NaN). The undefined value has the property that it is not equal (==) to itself, as a consequence the undefined value cannot sensibly be used in most collections.

Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Invertable<Inverse>
Attributes inherited from: Number
Inherited Methods
Methods inherited from: Object
Methods inherited from: Comparable<Other>
Methods inherited from: Exponentiable<This,Other>
Methods inherited from: Numeric<Other>
Methods inherited from: Summable<Other>