Possible Duplicate:
Elegant workaround for JavaScript floating point number problem
Why is it that when adding 2 numbers together using javascript, it will return a crazy number of decimal points?
If I add 285.72 + 142.86 on paper it equals 428.58, you get that same answer with a calculator.
However if I add that number from 2 textboxes it returns 428.58000000000004
I need my javascript to return 428.58. I know I can use .toFixed(), but I'd prefer not to since I don't get why adding two numbers together would create such a crazy number of places after a decimal point.