Article View: comp.lang.misc
Article #630Re: Fast conversions, another urban myth?
From: Henry Spencer
Date: Fri, 22 Sep 1989 20:19
Date: Fri, 22 Sep 1989 20:19
17 lines
1401 bytes
1401 bytes
In article <136@bbxsda.UUCP> scott@bbxsda.UUCP (Scott Amspoker) writes: >...do everything in C and require decimal arithmetic because of the >business nature of our applications. It is a constant disappointment >when the scientific-oriented hardware industry forgets that some of >us need to have 100 pennies == 1 dollar. Interest calculations >carried out to 3 or 4 decimal places need to round correctly. >Converting to binary and back to decimal is not the answer... Can you explain why binary integer arithmetic is less accurate than decimal integer arithmetic for your applications? Sounds like you're confusing the decimal/binary choice with the integer/floating-point choice; the two are orthogonal and independent. (Yes, there are decimal floating-point boxes in the world, e.g. in your pocket calculator.) -- "Where is D.D. Harriman now, | Henry Spencer at U of Toronto Zoology when we really *need* him?" | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
Technical Details
Message-ID:
<1989Sep22.201906.10618@utzoo.uucp>Path:
arc1-ca.pugleaf.net!utzoo!henryReferences:
<832@dms.UUCP> <688@UALTAVM.BITNET> <9dAz02zs58y201@amdahl.uts.amdahl.com> <27935@winchester.mips.COM> <136@bbxsda.UUCP>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.misc,comp.arch Path: arc1-ca.pugleaf.net!utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Fast conversions, another urban myth? Message-ID: <1989Sep22.201906.10618@utzoo.uucp> Organization: U of Toronto Zoology References: <832@dms.UUCP> <688@UALTAVM.BITNET> <9dAz02zs58y201@amdahl.uts.amdahl.com> <27935@winchester.mips.COM> <136@bbxsda.UUCP> Date: Fri, 22 Sep 89 20:19:06 GMT