New issue
Advanced search Search tips

Issue 647702 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

2.2 - 1 = 1.2000000000000002

Reported by karthike...@gmail.com, Sep 16 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.101 Safari/537.36

Steps to reproduce the problem:
1. Open dev console
2. Enter 2.2 - 1
3. 

What is the expected behavior?
1.2

What went wrong?
1.2000000000000002

Did this work before? No 

Chrome version: 53.0.2785.101  Channel: n/a
OS Version: 10.0
Flash Version: Shockwave Flash 22.0 r0
 

Comment 1 by bokan@chromium.org, Sep 16 2016

Status: WontFix (was: Unconfirmed)
This is actually correct behavior because 1.2 cannot be represented exactly in binary. (Try it in Firefox, same result). You can truncate your result to fewer digits. See http://floating-point-gui.de/

Sign in to add a comment