ptolemy.math
Class Rounding.RoundHalfCeiling

java.lang.Object
  extended byptolemy.math.Rounding
      extended byptolemy.math.Rounding.RoundHalfCeiling
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Enclosing class:
Rounding

public static class Rounding.RoundHalfCeiling
extends Rounding

The round to nearest and halves towards plus infinity (nearest) rounding strategy

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class ptolemy.math.Rounding
Rounding.General, Rounding.RoundCeiling, Rounding.RoundDown, Rounding.RoundFloor, Rounding.RoundHalfCeiling, Rounding.RoundHalfDown, Rounding.RoundHalfEven, Rounding.RoundHalfFloor, Rounding.RoundHalfUp, Rounding.RoundUnnecessary, Rounding.RoundUp, Rounding.Unknown
 
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
protected  boolean _roundUp(java.math.BigInteger intPart, double fracPart)
          Return true if intPart should be incremented to represent the rounded value of intPart + fracPart, which is positive.
 
Methods inherited from class ptolemy.math.Rounding
clone, equals, forName, getName, hashCode, quantize, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

_roundUp

protected boolean _roundUp(java.math.BigInteger intPart,
                           double fracPart)
Description copied from class: Rounding
Return true if intPart should be incremented to represent the rounded value of intPart + fracPart, which is positive.

Specified by:
_roundUp in class Rounding