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,18f7f6e041b3e0bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-15 10:40:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!nntp.flash.net!prodigy.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr21.news.prodigy.com.POSTED!3bae8248!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Information Systems Annex was RE: Dispatching and generics - language lawyer question References: <3D5BD43F.D85D3CF3@san.rr.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 67.115.104.148 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr21.news.prodigy.com 1029433160 ST000 67.115.104.148 (Thu, 15 Aug 2002 13:39:20 EDT) NNTP-Posting-Date: Thu, 15 Aug 2002 13:39:20 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: OH\IRYOGTRUSP_@YMZJ\_Q\@TJ_ZTB\MV@BJ]Q]KEYUNDQUCCNSUAACY@L[ZX__HGFD]JBJNSFXTOOGA_VWY^_HG@FW_HUTHOH]TBPGCO\P^PLP^@[GLHUK@WLECKFVL^TYG[@RMWQXIWM[SDDYWNLG_G[_BWUCHFY_Y@AS@Q[B\APPF@DCZM_PG_VSCPQZM Date: Thu, 15 Aug 2002 17:39:20 GMT Xref: archiver1.google.com comp.lang.ada:28062 Date: 2002-08-15T17:39:20+00:00 List-Id: > systems that aren't decimal? E.g., pence/shillings/pounds don't decompose > nicely into decimals to start with. Just curious if there are programming Some years ago I did a system for an outfit that sold historical stock and commodity price data. Some things were in pennies, some (like stocks) in eighths, some in quarters, etc. IIRC we defined a fixed point type with the LCM of those things as its 'delta and then it was a simple type conversion to move the odd prices in/out of that fixed point type.