A DESCRIPTION OF THE REQUEST :
Add gt (>), gte (>=), lt (<), lte (<=) methods to BigDecimal.
JUSTIFICATION :
It is hard to do without them if one is comparing the result of a computation to an error tolerance.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
if( BigDecimalX.lt( BigDecimalY ) )
doThis();
else
doThat();
ACTUAL -
Can't be done now except with a lot of messing around.
CUSTOMER SUBMITTED WORKAROUND :
Emulate the desired behavior with absolute values and subtraction.
Add gt (>), gte (>=), lt (<), lte (<=) methods to BigDecimal.
JUSTIFICATION :
It is hard to do without them if one is comparing the result of a computation to an error tolerance.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
if( BigDecimalX.lt( BigDecimalY ) )
doThis();
else
doThat();
ACTUAL -
Can't be done now except with a lot of messing around.
CUSTOMER SUBMITTED WORKAROUND :
Emulate the desired behavior with absolute values and subtraction.