> Il y a même une infinité de Fractions r telles que
> f-0.5*ulp < r < f+0.5ulp
>
>   

Yes... find two with small integer numerators and denominators... bonus 
points if you find fractions with small smallIntegers, too.

> Anyway, Andres, tell me what how you can bear this VW behaviour I
> exposed to Michael L.S.
>
> 9.9999730e20 printString -> '1.0e21'
> 9.9999731e20 printString -> '9.99997e20'
> 9.9999731e20 >= 9.9999730e20. false
>
> To me, this is a clear violation of ISO/IEC 10967-2
> http://www.cs.chalmers.se/~kent/ISOStandards/SC22/WG11/LIA-2/N424.ps
> I guess "we Smalltalk guys are smarter and did not change things for
> 30 years, so why bother now" is our best argument :)
>   

I don't know what the deal is with that.  However, I am not surprised 
that relying on print strings for floating point numbers leads to bogus 
results.

On a more positive note, according to our current plans, VW 7.7 will 
provide vastly improved IEEE arithmetic including proper support for INF 
and NaN.

Andres.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to