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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7cda96e9413b780c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-29 10:42:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!freenix!fr.clara.net!heighliner.fr.clara.net!news.tele.dk!small.news.tele.dk!207.115.63.138!newscon04.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr13.news.prodigy.com.POSTED!3bae8248!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Floating Decimal Package/Library? References: <3D4575F4.8090408@cogeco.ca> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 67.112.202.52 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr13.news.prodigy.com 1027964472 ST000 67.112.202.52 (Mon, 29 Jul 2002 13:41:12 EDT) NNTP-Posting-Date: Mon, 29 Jul 2002 13:41:12 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: FKPO@SVGXZUWSVPXN[O@_WH@YR_B@EXLLBWLOOAFMASJETAANVW[AKWZE\]^XQWIGNE_[EBL@^_\^JOCQ^RSNVLGTFTKHTXHHP[NB\_C@\SD@EP_[KCXX__AGDDEKGFNB\ZOKLRNCY_CGG[RHT_UN@C_BSY\G__IJIX_PLSA[CCFAULEY\FL\VLGANTQQ]FN Date: Mon, 29 Jul 2002 17:41:12 GMT Xref: archiver1.google.com comp.lang.ada:27456 Date: 2002-07-29T17:41:12+00:00 List-Id: >> Did you check http://www.chez.com/bignumber >Yep: "It allows computations on big integers, signed or unsigned, >and on big fractions." So what this says is integers and >rational computations only. IIRC you wanted a fixed point representation. A fixed point type *is* an integer. If you want to represent up to a hundred trillion Turkish lira, down to a millionth of a lira, you use an integer count of micro-lira, with the integer having a maximum value of a hundred million trillion micro-liras. Ada's fixed point types are nothing but integers with the compiler handling the scaling. Random question: At what fraction of a lira is the error involved in dropping the rightmost digit of precision less than the cost of the extra electricity to include that digit in calculations?