Closed
Bug 368288
Opened 18 years ago
Closed 18 years ago
Error while adding float numbers
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: xavophonic, Unassigned)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
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
Reporter | ||
Comment 1•18 years ago
|
||
Updated•18 years ago
|
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.
Description
•