Re: This calculation is just wrong / computer can't count!
- From: "Eric Hill" <eric@xxxxxxxxx>
- Date: Tue, 09 Oct 2007 09:48:50 -0500
OMG! This flame war has gone on long enough.
Here's a simple answer, GT: The built-in variables in C++ (float, double, et al) don't handle precision in the way you expect. Use an arbitrary precision library, of which there are several to choose from...
http://en.wikipedia.org/wiki/Bignum
As an example, see apfloat: http://www.apfloat.org/apfloat/faq.html
Eric
.
- Follow-Ups:
- Re: This calculation is just wrong / computer can't count!
- From: David Ching
- Re: This calculation is just wrong / computer can't count!
- References:
- Prev by Date: Re: This calculation is just wrong / computer can't count!
- Next by Date: Re: This calculation is just wrong / computer can't count!
- Previous by thread: Re: This calculation is just wrong / computer can't count!
- Next by thread: Re: This calculation is just wrong / computer can't count!
- Index(es):
Relevant Pages
|