HOW TO MAKE SURE THAT YOU R DOUBLES IN JAVA DISPLAY 2 DECIMAL DIGITS code example Example: java double 2 decimal String result = String.format("%.2f", value);