On Thu, 14 Feb 2008 16:59:27 +0100, "Fred Zwarts" <F.Zwarts@KVI.n lwrote:
>"Rahul" <rahulsharma@lu cent.comwrote in message news:1209312c-0031-4a44-9ccb-bf02e3cfe680@s1 9g2000prg.googl egroups.com...
>
>Possible causes are:
+ Use of uninitialized variables.
+ Use of a random generator.
+ Use of the changing environment, e.g. the current time.
+ ...
>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.
>>
>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.
>Possible causes are:
+ Use of uninitialized variables.
+ Use of a random generator.
+ Use of the changing environment, e.g. the current time.
+ ...
Possibly explains what happens to my socks in the dryer, too.
Leave a comment: