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

List:       kde-bugs-dist
Subject:    [Bug 51684] Math constant rounding error
From:       Thiago Macieira <thiagom () mail ! com>
Date:       2003-05-21 15:29:41
[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     




------- Additional Comments From thiagom@mail.com  2003-05-21 17:29 -------
Or, rather, that they round up the representation of 76.5999999999999 or somehow 
do the operation in another way so that the rounding error does not show up. 
 
Whether or not Math.round(766.6) becomes 766 is irrelevant. The result of 766 / 10 
is 76.6 or 76.59999999999 given the precision. 
 
For instance, when trying to print a number with that many decimal places, if it's 
shrunk to, say, 6, rounding would occur and 76.6 would be shown.
[prev in list] [next in list] [prev in thread] [next in thread] 

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