[r6rs-discuss] Hashes in the number syntax
Neil Jerram
neil at ossau.uklinux.net
Thu Dec 14 16:39:56 EST 2006
Ben Goetter <goetter at mazama.net> writes:
> From: Jens Axel Søgaard <jensaxel at soegaard.net>
>> If 1## were specified to be read as #i150, then I could
>> see a use for the syntax. As is things are now, it can be
>> read as any number between 100.0 and 200.0 .
>
> Treating the first # in the sequence as a 5 and every subsequent # as
> a 0 places the read number in the middle of the range of its possible
> values.
>
> 1## -> #i150 [100, 199]
> 1##.## -> #i150 [100.00, 199.99]
> 123.4### -> 123.45 [123.4000, 123.4999]
Intuitively, I would expect something different. Namely for 1## to
mean "100, with one significant figure" - which would therefore mean
[50, 149.99...].
It does seem odd for the reports not to be precise on this.
Regards,
Neil
More information about the r6rs-discuss
mailing list