Float equality? (was: [BUG] Float NaN's)

Marcus Denker denker at iam.unibe.ch
Wed Sep 15 09:29:00 UTC 2004


Am 15.09.2004 um 11:16 schrieb radoslav hodnicak:

> On Wed, 15 Sep 2004, Doug Way wrote:
>
>>
>> On Tuesday, September 14, 2004, at 11:22 PM, Richard A. O'Keefe wrote:
>>
>>> ...
>>> 	>This does not require the use of a Float.  In Smalltalk I'd use
>>> either a
>>> 	>Fraction or a ScaledDecimal.
>>>
>>> Unfortunately, there is no ScaledDecimal class in Squeak.
>>
>> Some good news for Richard:  ScaledDecimal was added to Squeak 3.7.
>> (which is now being released)
>
> Is that the version from ANSI compatibility package? If yes, it's 
> buggy -
> try for example to inspect '1.40s2' asNumber (you get 1.39s2)
>

Then write a test and submit it.

      Marcus




More information about the Squeak-dev mailing list