public abstract class RealConstant extends NumericConstant
DoubleConstant,
FloatConstant,
Serialized Form| Constructor and Description |
|---|
RealConstant() |
| Modifier and Type | Method and Description |
|---|---|
abstract IntConstant |
cmpg(RealConstant constant)
Performs the indicated floating point comparison.
|
abstract IntConstant |
cmpl(RealConstant constant)
Performs the indicated floating point comparison.
|
add, divide, equalEqual, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, multiply, negate, notEqual, remainder, subtractclone, convertToBaf, equivHashCode, equivTo, getUseBoxes, toStringequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic abstract IntConstant cmpl(RealConstant constant)
NaN comparisons -1 is returned.constant - the value to compare with0 if values are equal, 1 if passed value less, or -1 if passed value greater.
When any of the values is NaN method returns -1.public abstract IntConstant cmpg(RealConstant constant)
NaN comparisons 1 is returned.constant - the value to compare with0 if values are equal, 1 if passed value less, or -1 if passed value greater.
When any of the values is NaN method returns 1.