Package ptolemy.math
Class Rounding.RoundCeiling
- java.lang.Object
-
- ptolemy.math.Rounding
-
- ptolemy.math.Rounding.RoundCeiling
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
round(java.math.BigDecimal dec)
Round the BigDecimal value using the appropriate rounding strategy.-
Methods inherited from class ptolemy.math.Rounding
clone, equals, forName, getName, hashCode, nameIterator, roundCeiling, roundDown, roundFloor, roundHalfCeiling, roundHalfDown, roundHalfEven, roundHalfFloor, roundHalfUp, roundUp, toString
-
-
-
-
Method Detail
-
round
public java.math.BigInteger round(java.math.BigDecimal dec)
Description copied from class:Rounding
Round the BigDecimal value using the appropriate rounding strategy. The result is a BigInteger value rounded appropriately. Each class that extends Rounding will provide a mode specific round function.
-
-