[r6rs-discuss] Hashes in the number syntax

From: Neil Jerram <neil>
Date: Thu Dec 14 16:41:26 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
Received on Thu Dec 14 2006 - 16:39:56 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:00 UTC