|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.math.Rounding
ptolemy.math.Rounding.RoundHalfFloor
public static class Rounding.RoundHalfFloor
Rounding class implementing the round half floor strategy.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.math.Rounding |
---|
Rounding.RoundCeiling, Rounding.RoundDown, Rounding.RoundFloor, Rounding.RoundHalfCeiling, Rounding.RoundHalfDown, Rounding.RoundHalfEven, Rounding.RoundHalfFloor, Rounding.RoundHalfUp, Rounding.RoundUp |
Field Summary |
---|
Fields inherited from class ptolemy.math.Rounding |
---|
CEILING, CONVERGENT, DOWN, FLOOR, GENERAL, HALF_CEILING, HALF_DOWN, HALF_EVEN, HALF_FLOOR, HALF_UP, NEAREST, TRUNCATE, UNKNOWN, UNNECESSARY, UP |
Constructor Summary | |
---|---|
private |
Rounding.RoundHalfFloor()
|
Method Summary | |
---|---|
java.math.BigInteger |
round(java.math.BigDecimal dec)
Round the BigDecimal value using the appropriate rounding strategy. |
Methods inherited from class ptolemy.math.Rounding |
---|
_addRounding, clone, equals, forName, getName, hashCode, nameIterator, roundCeiling, roundDown, roundFloor, roundHalfCeiling, roundHalfDown, roundHalfEven, roundHalfFloor, roundHalfUp, roundUp, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
private Rounding.RoundHalfFloor()
Method Detail |
---|
public java.math.BigInteger round(java.math.BigDecimal dec)
Rounding
round
in class Rounding
dec
- value to be rounded
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |