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 Lines: 10 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