From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: ** X-Spam-Status: No, score=2.6 required=5.0 tests=BAYES_40,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!ig!agate!helios.ee.lbl.gov!nosc!cod!broman From: broman@cod.NOSC.MIL (Vincent P. Broman) Newsgroups: comp.lang.ada Subject: Re: Ada and decimal arithmetic Summary: count your pennies Keywords: decimal commercial arithmetic ada Message-ID: <1139@cod.NOSC.MIL> Date: 29 Jun 88 15:11:29 GMT References: <8806291300.AA28408@ajpo.sei.cmu.edu> Reply-To: broman@nosc.mil.UUCP (Vincent P. Broman) Organization: Naval Ocean Systems Center, San Diego List-Id: Requiring decimal arithmetic in order to support commercial applications is _so_thoughtless_. No careful programmer would compute in floating point dollars, when long integer (or long floating) counting by pennies will avoid roundoff problems. All you need are I/O routines that prefix a dollar sign and add a decimal point between the hundreds' and tens' place. 23045 => "$230.45" Simple. Vincent Broman, code 632, Naval Ocean Systems Center, San Diego, CA 92152, USA Phone: +1 619 553 1641 Internet: broman@nosc.mil Uucp: sdcsvax!nosc!broman