[ANN] OSC for Squeak

Ned Konz ned at squeakland.org
Tue Mar 29 22:31:07 UTC 2005


On Tuesday 29 March 2005 12:41 pm, Markus Gaelli wrote:
> - One test is not running due to bizarre floating point arithmetic:
> #('/foo' 1000 -1 'hello' 1.233999967575073 5.67799997329712) is
> certainly not #('/foo' 1000 -1 'hello' 1.234 5.678)
> Hope nobody needs too precise floats...

Why not just choose either to (a) round the printed output to 0.001, or (b) 
choose floats that can be exactly represented?

Just remember that these are binary fractions...

If you used (say) 1.125 and 4.0625 it would probably work better.

-- 
Ned Konz
http://bike-nomad.com/squeak/



More information about the Squeak-dev mailing list