Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Floating point ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 17 Topic 43307 of 47561
Post > Topic >>

Floating point computations differ in different runs of same program

by Rahul <rahulsharma@[EMAIL PROTECTED] > Feb 14, 2008 at 01:17 AM

Hi,

I have a C program which does lots of computations in floats and
doubles,
It is processing the same file (same data) but in different runs of
the program (on the same machine) the results vary sometimes by
numeric value 1 (which is after rounding the resulting float number)
Is this expected behavior with floats and doulbe (with lots of
intermediate conversion in between) ?

Since There is only one thread so I guess the result should be same
always.

Any reason/pointers for the above mentioned behavior.

Thanks in advance
Rahul
 




 17 Posts in Topic:
Floating point computations differ in different runs of same pro
Rahul <rahulsharma@[EM  2008-02-14 01:17:12 
Re: Floating point computations differ in different runs of same
Lionel B <me@[EMAIL PR  2008-02-14 09:53:08 
Re: Floating point computations differ in different runs of same
kasthurirangan.balaji@[EM  2008-02-14 04:06:05 
Re: Floating point computations differ in different runs of same
Daniel Kraft <d@[EMAIL  2008-02-14 13:28:33 
Re: Floating point computations differ in different runs of same
Lionel B <me@[EMAIL PR  2008-02-14 15:29:26 
Re: Floating point computations differ in different runs of same
"Fred Zwarts" &  2008-02-14 16:59:27 
Re: Floating point computations differ in different runs of same
dohboy <dohboy@[EMAIL   2008-02-26 11:38:36 
Re: Floating point computations differ in different runs of same
Richard Herring <junk@  2008-02-14 17:02:27 
Re: Floating point computations differ in different runs of same
Tim Slattery <Slattery  2008-02-14 16:12:24 
Re: Floating point computations differ in different runs of same
"Victor Bazarov"  2008-02-14 16:37:36 
Re: Floating point computations differ in different runs of same
Kai-Uwe Bux <jkherciue  2008-02-14 19:22:43 
Re: Floating point computations differ in different runs of same
Pete Becker <pete@[EMA  2008-02-14 21:40:28 
Re: Floating point computations differ in different runs of same
Pete Becker <pete@[EMA  2008-02-14 21:50:20 
Re: Floating point computations differ in different runs of same
Pete Becker <pete@[EMA  2008-02-14 17:52:07 
Re: Floating point computations differ in different runs of same
kasthurirangan.balaji@[EM  2008-02-15 00:05:53 
Re: Floating point computations differ in different runs of same
Richard Herring <junk@  2008-02-15 10:03:35 
Re: Floating point computations differ in different runs of same
James Kanze <james.kan  2008-02-15 03:09:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 4:01:44 CDT 2008.