Index - All Packages - All Categories - All Classes

Class PrimFloatValue

A boxed representation of a floating point value

Package: Udanax-Gold
All Superclasses: Object Heaper PrimValue
Immediate Subclasses: PrimIEEE32 PrimIEEE64
Protocols: Object
Categories: X++ PrimArrays

Class Methods

infostProtocol



Overrides: PrimValue class

Instance Methods

asIEEE128

The value as an IEEE 128-bit floating point number.
May not be possible if conversion from subclass to IEEE type is not available.

Overridden by: PrimIEEE32 PrimIEEE64

asIEEE32

The value as an IEEE 32-bit floating point number.
May not be possible if conversion from subclass to IEEE type is not available.

Overridden by: PrimIEEE32 PrimIEEE64

asIEEE64

The value as an IEEE 64-bit floating point number.
May not be possible if conversion from subclass to IEEE type is not available.

Overridden by: PrimIEEE32 PrimIEEE64

bitCount

What precision is it, in terms of the number of bits used to represent it. In the interests of efficiency, this may return a number larger than that *needed* to represent it. However, the precision reported must be at least that needed to represent this number. It is assumed that the format of the number satisfies the IEEE radix independent floating point spec. Should we represent real numbers other that those representable in IEEE, the meaning of this message will be more fully specified.
The fact that this message is allowed to overestimate precision doesn't interfere with equality: a->isEqual(b) exactly when they represent that same real number, even if one of them happens to overestimate precision more that the other.

Overridden by: PrimIEEE32 PrimIEEE64

createRcvr: receiver



Overridden by: PrimIEEE32 PrimIEEE64

exponent

If this is a number, return the exponent

Overridden by: PrimIEEE32 PrimIEEE64

isANumber

Return TRUE if value represents a number.

Overridden by: PrimIEEE32 PrimIEEE64

isNumber


mantissa

If this is a number, return the signed mantissa

Overridden by: PrimIEEE32 PrimIEEE64

precision


sendSelfTo: xmtr



Overridden by: PrimIEEE32 PrimIEEE64


Index - All Packages - All Categories - All Classes