Closed Bug 618839 Opened 14 years ago Closed 14 years ago

Wrong calculation in javascript with floats

Categories

(Firefox :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 5856

People

(Reporter: sworddragon2, Unassigned)

Details

Attachments

(1 file)

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.
Attached file Testcase (deleted) —
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.

Attachment

General

Creator:
Created:
Updated:
Size: