[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 51684] Math constant rounding error
From:       Peter Kelly <pmk () kde ! org>
Date:       2003-04-26 1:02:01
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
     
http://bugs.kde.org/show_bug.cgi?id=51684     
pmk@kde.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From pmk@kde.org  2003-04-26 03:01 -------
This is the correct behaviour... all numerical operations in ecmascript   
are based on floating point operations. If you try the same code in IE or 
Mozilla you will get a floating point number. 
   
Use Math.round() if you want an integer value
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic