Example usage for Java java.math RoundingMode fields, constructors, methods, implement or subclass
The text is from its open source code.
RoundingMode | UP Rounding mode to round away from zero. |
RoundingMode | DOWN Rounding mode to round towards zero. |
RoundingMode | CEILING Rounding mode to round towards positive infinity. |
RoundingMode | FLOOR Rounding mode to round towards negative infinity. |
RoundingMode | HALF_UP Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round up. |
RoundingMode | HALF_DOWN Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round down. |
RoundingMode | HALF_EVEN Rounding mode to round towards the "nearest neighbor" unless both neighbors are equidistant, in which case, round towards the even neighbor. |
RoundingMode | UNNECESSARY Rounding mode to assert that the requested operation has an exact result, hence no rounding is necessary. |
String | toString() Returns a string representation of the object. |
RoundingMode | valueOf(int rm) Returns the RoundingMode object corresponding to a legacy integer rounding mode constant in BigDecimal . |