Re: demonic numbers !
From: Rahul Jain (rjain_at_nyct.net)
Date: 02/06/05
- Next message: Kenny Tilton: "Re: how to apply quote to an evaluated atom?"
- Previous message: Rahul Jain: "Re: demonic numbers !"
- In reply to: Christophe Turle: "Re: demonic numbers !"
- Next in thread: Christophe Turle: "Re: demonic numbers !"
- Reply: Christophe Turle: "Re: demonic numbers !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 06 Feb 2005 07:21:23 -0500
"Christophe Turle" <cturle@nospam.com> writes:
> Yes, i know it's not lisp code. And this is in fact my problem, why IN lisp,
> .1111 is read as a float ? yes, the spec is the spec. But for this point,
> imho the spec is not good.
As you've been told, this point was debated when the spec was being
drawn up, but making .1111 read as a rational would break too much
existing code.
> I can't satisfy myself thinking that in Lisp .1111 does not mean .1111 (from
> human readers point of view)
Humans don't read code. Computers read code. :)
> It's the same as telling you that in language Horrible1 HGF.FDS means .1111
> because internally the language uses compression algorithms so it is more
> efficient. Where is abstraction ?
No it's not. What do you mean by abstraction? The details of the FP
implementation are abstracted. It is allowed to use any base, number of
exponent and mantissa bits, existence of negative zero, NaN(s),
infinities, gradual under/overflow, etc. The last few can't be
determined directly via standard operators, but the others allow a
decent degree of adaptability of code to different FP implementations.
In any case, FP numbers are an important part of computing. More
important than rational numbers, and that's not likely to change in the
future. Too much of the computation done needs to be fast and is based
on approximate, heuristic algorithms or inputs.
-- Rahul Jain rjain@nyct.net Professional Software Developer, Amateur Quantum Mechanicist
- Next message: Kenny Tilton: "Re: how to apply quote to an evaluated atom?"
- Previous message: Rahul Jain: "Re: demonic numbers !"
- In reply to: Christophe Turle: "Re: demonic numbers !"
- Next in thread: Christophe Turle: "Re: demonic numbers !"
- Reply: Christophe Turle: "Re: demonic numbers !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|