dear all,
let say i have a number in string form. The number is 78.18 but is in Sring type. I have to get the number for 78.18 * 11 , which is in number data type, not String type. Therefore, i use Double.parseDouble()....but what i got at last is 859.9000000...01. Why? If i want to get the answer in 859.90 (in 2 precision), how should i do?
Thanks.
yukeshean
fyshean@hotmail.com
let say i have a number in string form. The number is 78.18 but is in Sring type. I have to get the number for 78.18 * 11 , which is in number data type, not String type. Therefore, i use Double.parseDouble()....but what i got at last is 859.9000000...01. Why? If i want to get the answer in 859.90 (in 2 precision), how should i do?
Thanks.
yukeshean
fyshean@hotmail.com