I am trying to only display at most two decimal digits.(rounding)
posted 9 years ago
I am writtng a java app that computes an energy bill, but the computations are only supposed to display two decimals digits at the most. here is my code, I am trying to find a way to only display the two digits after the decimal in the answer (print statement). I was thinking that I could use a string method or something.