Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
On 01/15/2012 02:51 PM, Richard Pieri wrote: > On Jan 15, 2012, at 1:56 PM, markw at mohawksoft.com wrote: >> You are confusing "display" of a double with "use" of a double. >> 0.36999999999999999556 is numerically, with finite precision less than 15 >> decimal places, effectively 0.37. > No, I'm not. While .369999999 etc. is "effectively" 0.37, it isn't 0.37. Do an amortization of your IRA with doubles and with arbitrary precision BCD. You'll get different results, and the doubles math result will be wrong. > > Wrong is not good enough for anyone's finances. > While Mark is correct based on display and rounding the number 0.37 cannot be implemented exactly in a binary floating point number. There is always that error, as Richard points out. -- Jerry Feldman <gaf at blu.org> Boston Linux and Unix PGP key id:3BC1EB90 PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66 C0AF 7CEA 30FC 3BC1 EB90
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |