Re: subtract two double precision numbers
- From: Jordan Abel <random832@xxxxxxxxx>
- Date: 14 Feb 2006 18:13:43 GMT
On 2006-02-14, Irrational Number <nospam@xxxxxxxxxx> wrote:
I'm running on Linux Red Hat 7 and
SGI IRIX 6.5. I have two double
precision values, which, to the
human eye, look identical. When I
subtract them, I get two different
values and that is the start of the
two runs being very different.
For example,
a = 4.123456789
b = 4.123456789
y = a - b
On IRIX: y = 3.xxxxxxe-15
On Linux: y = 4.xxxxxxe-14
Or something like that. What are
some things I can do to make them
come out to zero?
don't "for example" - please paste your
actual code.
.
- References:
- subtract two double precision numbers
- From: Irrational Number
- subtract two double precision numbers
- Prev by Date: subtract two double precision numbers
- Next by Date: Re: subtract two double precision numbers
- Previous by thread: subtract two double precision numbers
- Next by thread: Re: subtract two double precision numbers
- Index(es):
Relevant Pages
|
|