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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 107f24,626a0a064b320310 X-Google-Attributes: gid107f24,public X-Google-Thread: f4fd2,626a0a064b320310 X-Google-Attributes: gidf4fd2,public X-Google-Thread: 103d24,626a0a064b320310 X-Google-Attributes: gid103d24,public X-Google-Thread: 103376,ea8ea502d35ca2ce X-Google-Attributes: gid103376,public X-Google-Thread: 10259a,626a0a064b320310 X-Google-Attributes: gid10259a,public X-Google-Thread: 114809,626a0a064b320310 X-Google-Attributes: gid114809,public X-Google-Thread: 1164ba,626a0a064b320310 X-Google-Attributes: gid1164ba,public X-Google-ArrivalTime: 2001-05-31 04:02:22 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!t-online.de!fr.usenet-edu.net!usenet-edu.net!proxad.net!efrei.fr!oleane.net!oleane!nnrp.oleane.net!not-for-mail From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada,comp.lang.lisp,comp.lang.smalltalk,comp.lang.basic,comp.lang.functional,comp.lang.scheme,comp.lang.perl Subject: Re: Beginner's Language? Date: Thu, 31 May 2001 11:01:54 +0200 Organization: Adalog Message-ID: <9f52c7$pqb$1@s1.read.news.oleane.net> References: <9cukad$nn68@news-dxb> <9d6b6e$1bt$1@nh.pace.co.uk> <87snihxiwc.fsf@frown.here> <9dbi83$sji$1@nh.pace.co.uk> <87heyu7cqd.fsf@frown.here> <9dc20p$hh15e$1@ID-37382.news.dfncis.de> <9dclnt$9ic1@news.cis.okstate.edu> <3B02C05B.BA4B63C6@raytheon.com> <8766ei7fct.fsf@deneb.enyo.de> NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s1.read.news.oleane.net 991300808 26443 195.25.228.57 (31 May 2001 09:20:08 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Thu, 31 May 2001 09:20:08 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:7921 comp.lang.lisp:11029 comp.lang.smalltalk:10365 comp.lang.functional:5990 comp.lang.scheme:4078 comp.lang.perl:3064 Date: 2001-05-31T11:01:54+02:00 List-Id: "Johan Kullstam" a �crit dans le message news: m3r8x6tsa5.fsf@sysengr.res.ray.com... > you can always do fixed point with integers. > > for example, to do dollars to two decimal places, just count pennies > instead of dollars. > > other than a little notational convenience, i've never understood what > the big deal was with fixed point. > Everything looks simple to people who didn't try to implement it... Addition and subtraction are easy, but multiplication and division require some care. If you implement fixed points with integers, you'll end up doing by hand exactly what the compiler does for you, except that the people who wrote the compiler were educated in computer arithmetic, and believe me, there are lots of pitfalls there. (Said by someone who did an implementation of fixed point arithmetic). -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr