Fraction hackers...

DisneyLogic at disneyblast.com DisneyLogic at disneyblast.com
Wed Sep 15 04:27:35 UTC 1999




>[Florin Mateoc]  Well, guess what:
>
>		'(1/2)' + 0.5	 breaks
>		(1/2) + '0.5'	 1.0
>
>		'(1/2)' * 0.5		 breaks
>		(1/2) * '0.5'		 0.25
>
>	and so on...
>
>	Plus , between 
>		'(1/2)' = 0.5	"false"
>		(1/2) = '0.5'	"true"
>	IMHO the second result is "truer" than the first one, so maybe we
>should fix the first one instead of falsifying the second one if we care for
>simmetry (I agree, simmetry is good) 

Is there some source or standard upon 
which the Squeak flonum arithmetic is based
upon, like IEEE?  Trying to define the
"same as" or even the "near to" predicate
for flonums is a tricky business.

Thx,  --jtg


[snip]





More information about the Squeak-dev mailing list