Re: infinities reformulated Chongkai Zhu (31 May 2005 07:17 UTC)
Re: infinities reformulated Aubrey Jaffer (31 May 2005 23:47 UTC)
Re: infinities reformulated Thomas Bushnell BSG (02 Jun 2005 15:23 UTC)
Re: infinities reformulated Aubrey Jaffer (02 Jun 2005 16:12 UTC)
Re: infinities reformulated Thomas Bushnell BSG (02 Jun 2005 16:16 UTC)
string->number Aubrey Jaffer (02 Jun 2005 19:10 UTC)
Re: string->number Thomas Bushnell BSG (02 Jun 2005 20:05 UTC)
Re: string->number Aubrey Jaffer (03 Jun 2005 01:59 UTC)
Re: string->number Thomas Bushnell BSG (03 Jun 2005 02:09 UTC)
Re: string->number Aubrey Jaffer (15 Jun 2005 21:10 UTC)
Re: string->number Thomas Bushnell BSG (16 Jun 2005 15:28 UTC)
Re: string->number bear (16 Jun 2005 16:59 UTC)
Re: string->number Aubrey Jaffer (17 Jun 2005 02:16 UTC)
Re: infinities reformulated bear (04 Jun 2005 16:42 UTC)
Re: infinities reformulated Aubrey Jaffer (17 Jun 2005 02:22 UTC)
Re: infinities reformulated bear (19 Jun 2005 17:19 UTC)
Re: infinities reformulated Aubrey Jaffer (20 Jun 2005 03:10 UTC)
Re: infinities reformulated bear (20 Jun 2005 05:46 UTC)
precise-numbers Aubrey Jaffer (26 Jun 2005 01:50 UTC)

Re: string->number bear 16 Jun 2005 16:59 UTC


Hmmm....

	I like the idea of an implementation able to represent
more numbers exactly.  An "Nth Power of M" exact representation,
where N and M are allowed to be any integer, would add much of
that subset of the number line resulting from ordinary computation
to the numbers exactly representable.  I think that is an
unequivocally good thing.

	The implementor of such an implementation would need to
take great care when writing procedures to perform comparisons
among exact numbers, but the problem is not insoluble.

	At the moment, though, we're discussing inexact numbers
in IEEE-ish mantissa-exponent style notation, but of differing
lengths.  And my personal take on that is, rather than treat
each number as a "neighborhood" I'd prefer to treat it as a
"point" on the number line.  This allows a very specific kind
of inconsistency, but that inconsistency happens for good and
comprehensible reasons, and "hiding" it may sometimes hide
important information.

Example of inconsistency:  Consider two computations, A and B,
that yield results a and b such that a > b, but by a very small
amount.  If a is stored in a short, forcing a round down, and b
is stored in a short, forcing a round down (but not as much),
then (= a b) ==> #t, even though the computations A and B return
different values.

If a is stored in a short, forcing a round down, and B is stored
in a long, forcing a (*MUCH* smaller) round up or down, then
(> b a) ==> #t, even though B gives a value strictly less than A
when carried out to the same precision.

But I think this kind of "inconsistency" is both reasonable and
expected by anyone who would have a reason to specify that the
results should be given in a specific floating-point format, and
efforts to "avoid" it can only result in inconsistencies of a
less understood or less expected kind, possibly reducing the
utility of extended float formats by crippling comparisons
against them.

				Bear