Re: problem with 'double'
From: George Neuner (gneuner2/_at_comcast.net)
Date: 07/10/04
- Next message: Whats up dog!: "2 Simple Questions"
- Previous message: Andrew Thompson: "Re: Why does a JTextArea resize larger than another?"
- In reply to: Tom McGlynn: "Re: problem with 'double'"
- Next in thread: Michael Borgwardt: "Re: problem with 'double'"
- Reply: Michael Borgwardt: "Re: problem with 'double'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 10 Jul 2004 07:19:05 -0400
On Fri, 09 Jul 2004 12:38:15 -0400, Tom McGlynn
<tam@lheapop.gsfc.nasa.gov> wrote:
>I wonder if this continual misunderstanding of floating point suggests that the
>default floating point representation for data should be decimal rather
>than binary.
>
>This isn't going to happen any time soon, but in a world where only a tiny
>fraction of applications really need to worry about the efficiency of
>floating point computations, maybe it would be better to have a
>a default numeric model in the computer that is closer to what we use outside
>of it.
For many purposes, a fraction based implementation akin to Lisp's
rational numbers would be a reasonable choice. Using 64-bit integers
for numerator and denominator gives plenty of range and precision and
covers most typical program uses of reals.
George
-- for email reply remove "/" from address
- Next message: Whats up dog!: "2 Simple Questions"
- Previous message: Andrew Thompson: "Re: Why does a JTextArea resize larger than another?"
- In reply to: Tom McGlynn: "Re: problem with 'double'"
- Next in thread: Michael Borgwardt: "Re: problem with 'double'"
- Reply: Michael Borgwardt: "Re: problem with 'double'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|