Closed
Bug 618839
Opened 14 years ago
Closed 14 years ago
Wrong calculation in javascript with floats
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: sworddragon2, Unassigned)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b7) Gecko/20100101 Firefox/4.0b7
Build Identifier: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b7) Gecko/20100101 Firefox/4.0b7
The calculation with floats in javascript aren't correct. For example 0.1 + 0.2 will give 0.30000000000000004.
Reproducible: Always
Steps to Reproduce:
1. Write javascript code which sum 0.1 and 0.2 or use the testcase in the attachment.
Reporter | ||
Comment 1•14 years ago
|
||
Updated•14 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•