help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Re: [bug] Float rounded is inexact


From: Paolo Bonzini
Subject: [Help-smalltalk] Re: [bug] Float rounded is inexact
Date: Mon, 08 Jun 2009 01:05:59 -0700

Issue status update for http://smalltalk.gnu.org/project/issue/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:   bonzinip
-Status:       active
+Status:       fixed

Indeed.  I added a test to the testsuite too, using

p := (1 bitShift: self precision - 1) + (self coerce: 1.0).
self assert: p rounded = p asExactFraction

I'll be committing the fix soonish.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]