Re: sorry .09 instead of .08
- From: Ernie Wright <erniew@xxxxxxxxxxx>
- Date: Mon, 30 Jan 2006 18:31:56 -0500
zero wrote:
So, don't use doubles for financial calculations.
that's really the bottom line isn't it :-) Use whatever works for you, as long as it isn't double (or worse, float).
I'd strongly disagree. The problem is failure to understand roundoff, not any particular number representation. You'll eventually get bitten if you decide that avoiding floating-point primitives is all you need to do. Conversely, if you want to do anything more than adding and subtracting, you'll find the floating-point primitives very hard to avoid.
- Ernie http://home.comcast.net/~erniew
.
- References:
- sorry .09 instead of .08
- From: joshdalrymple2000
- Re: sorry .09 instead of .08
- From: James Westby
- Re: sorry .09 instead of .08
- From: Thomas Hawtin
- Re: sorry .09 instead of .08
- From: zero
- Re: sorry .09 instead of .08
- From: Thomas Hawtin
- Re: sorry .09 instead of .08
- From: zero
- Re: sorry .09 instead of .08
- From: Thomas Hawtin
- Re: sorry .09 instead of .08
- From: zero
- sorry .09 instead of .08
- Prev by Date: Re: Beginner CSV error
- Next by Date: How to load properties as resources?
- Previous by thread: Re: sorry .09 instead of .08
- Next by thread: Re: sorry .09 instead of .08
- Index(es):