Java Reference
In-Depth Information
from zero, or toward the nearest value. You can also assert that no
rounding will be necessary, in which case
ArithmeticException
will be
thrown if you are found to be wrong. The eight different rounding modes
are defined by the
RoundingMode
enum.