Does any body know how to convert a double so that it will have onlytwo decimals? For example if I enter 40.0 I wanted it to return me40.00; if I enter 40.3245234234 I wanted to return me 40.32. If anyone know how manipulate this, please let me know
Look in the package java.text, I believe it is calledNumberFormatter. You would basically pass it theformat string of "0.00", zeros tell the formatter toput a number in this spot unconditionally.
I think it was DecimalFormat..............
Thanks, I was trying to recall it from memory and Iknew I probably had the name of the class wrong butthe package was right.