convert a string to double with precision
807605Jul 5 2007 — edited Jul 5 2007I am getting a value amount of say $45.00 from a jsp and set this value as a string for my other work. then i am changing this string to double by using this statement
setAmount(Double.parseDouble(cstmt.getString(1)));
my precision is lost when i get this amount it just shows 45.0 how can I get the precision of 45.00
I would appreciate if any assistance is provided for the problem.
thanks