[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] [bug] Float rounded is inexact
From: |
Nicolas Cellier |
Subject: |
[Help-smalltalk] [bug] Float rounded is inexact |
Date: |
Sat, 06 Jun 2009 11:05:44 -0700 |
Issue status update for
http://smalltalk.gnu.org/node/308
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/308
Project: GNU Smalltalk
Version: <none>
Component: Base classes
Category: bug reports
Priority: minor
Assigned to: Unassigned
Reported by: nice
Updated by: nice
Status: active
5000000000000001.0 asExactFraction -> 5000000000000001
This Float is thus represented exactly.
Unfortunately, trying to round it introduces some avoidable
inexactness:
5000000000000001.0 rounded -> 5000000000000002
This is http://bugs.squeak.org/view.php?id=7134
I presume the patch can be ported to gst easily.
- [Help-smalltalk] [bug] Float rounded is inexact,
Nicolas Cellier <=