Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!goanna!ok From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) Newsgroups: comp.lang.c Subject: Re: Here's a challenge for floating point lovers. Message-ID: <4729@goanna.cs.rmit.oz.au> Date: 8 Feb 91 07:46:31 GMT References: <14964@smoke.brl.mil> <101@tdatirv.UUCP> <2855@charon.cwi.nl> <1700@bbxsda.UUCP> Organization: Comp Sci, RMIT, Melbourne, Australia Lines: 23 In article <1700@bbxsda.UUCP>, scott@bbxsda.UUCP (Scott Amspoker) writes: > In article <1991Jan29.173341.11899@zoo.toronto.edu> henry@zoo.toronto.edu (Henry Spencer) writes: > >IEEE fp ... was designed by people who understood numerical arithmetic. > The designers didn't necessarily understand business arithmetic. It's a > pain in the rear trying to manage rounding errors and arbitrary *decimal* > precisions with a format that is fundamentally radix 2. Other than that > it's a great format. IEEE 754 wasn't *INTENDED* for business arithmetic. There are important numerical reasons why radix 2 was chosen. It is worth noting that the designers of 754 KNEW that radix 2 and multiple-of-32-bit-word wasn't ideal for everyone. That's why there is IEEE 854. That covers arbitrary word lengths, and it covers radix ***10*** as well as radix 2. If you want to claim that the IEEE designers didn't understand business arithmetic, attack the decimal part of IEEE 854. It's also worth noting that IEEE 754 double precision gives you exact +, -, *, div, and mod for integers of up to 15 decimal digits. -- Professional programming is paranoid programming