[clean-list] Minor but fun

John van Groningen johnvg at cs.ru.nl
Fri Sep 26 17:40:33 MEST 2008


Vag wrote:

>Some strange behaviour of latest CLEAN version I found accidentally:
>
>Start = [0.6,0.7 .. 1.2]
>
>
> > [ .6, .7, .8, .9, .:, 1.1, 1.2 ]
>                       ^^^^^

This is caused by an error in the function that converts a Real to
a string on 64 bit Windows. If the Real is very close to a power of 10,
rounding .999999999999999999 up, after computing the position of the
decimal point causes the function to yield .: , because : is the
character with the next ascii code after 9.

I had discovered and fixed this already.

Kind regards,

John van Groningen


More information about the clean-list mailing list