Closed Bug 368288 Opened 18 years ago Closed 18 years ago

Error while adding float numbers

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 20140

People

(Reporter: xavophonic, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8 An error occures when I try to add float numbers with Javascript. The result is sometimes false. Reproducible: Always Steps to Reproduce: 1. Create a page with the following script : <script language="javascript" type="text/javascript">//<![CDATA[ var e = 4.290 + 75.030; alert(e); </script> 2. Open the page with Firefox 3. The result is 79.32000000000001. Actual Results: The result is 79.32000000000001 Expected Results: The result should be 79.32
Attached file HTML file to test the error (deleted) —
Duplicate of bug 20140.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: