how does java.math.RoundingMode work?
DecimalFormat using incorrect RoundingMode even when set explicitly
RoundingMode.HALF_DOWN issue in Java8 Java Double setScale and RoundingMode equivalent in C#? How to specify RoundingMode for decimal numbers in Jasper Reports RoundingMode.UNNECESSARY throws exception Set BigDecimal RoundingMode according to user option without if statements? Java Math RoundingMode.HALF_EVEN prints unexpected result Android Math does not work What would Math.scalb be used for? for loop math with array in java Deprecated constructor for BigDecimal.setScale(int, int) and RoundingMode enums Is Java RoundingMode.HALF_EVEN bug? I can't use math methods in Java Confused by DecimalFormat/RoundingMode.Down functionality for edge cases RoundingMode HALF_UP is not working properly Different result in RoundingMode.HALF_UP Most accurate Enum Constant for RoundingMode (Calculating Pi in Java) How to work with an 'x' variable like in math? using math class in java Why does Java's RoundingMode HALF_UP round -2.5 to -3? what is the difference between the java.lang.Math class and the java.Math class Trouble with setting RoundingMode on DecimalFormat Java: RoundingMode Error- cannot find symbol RoundingMode HALF_EVEN analogous to the rounding policy used for float why is my math wrong in Java? Why doesn't java.math.RoundingMode come with HALF_ODD rounding? Using a string variable for a math function in Java math in java - what does " %" do? Why does Java's RoundingMode HALF_DOWN round 1.245 to 1.25?