[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] strange behaviour of addition of floats and exponential f
Jordi Gutiérrez Hermoso
Re: [Help-gsl] strange behaviour of addition of floats and exponential function
Wed, 26 Jan 2011 17:11:12 -0600
2011/1/26 Chandra Sekhar Mallarapu <address@hidden>:
> From: Jordi Gutiérrez Hermoso address@hidden
> On 26 January 2011 09:18, Chandra Sekhar Mallarapu
> <address@hidden> wrote:
>> I am trying to do C=A+B, where
> What data types are A, B, and C? I don't think there are any float
> types in any common architecture that are broad enough to be accurate
> to that many digits.
> A, B, C are double data type in C. Even if its not accurate till the
> last digit, shouldn't it be accurate to some digits atleast?
I think you ought to consult
for a brief overview and
more a more in-depth treatment.
In short, your expectations of how floating point arithmetic works
- Jordi G. H.