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: fdb77,5f529c91be2ac930 X-Google-Attributes: gidfdb77,public X-Google-Thread: 103376,583275b6950bf4e6 X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,899fc98b2883af4a X-Google-Attributes: gidf43e6,public X-Google-Thread: 1108a1,59ec73856b699922 X-Google-Attributes: gid1108a1,public X-Google-ArrivalTime: 2003-05-20 03:28:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!feed.news.nacamar.de!news.belwue.de!news.uni-stuttgart.de!not-for-mail From: Peter Hermann Newsgroups: comp.lang.java.advocacy,comp.object,comp.lang.ada,comp.software-eng Subject: Re: Logic Errors and Ada Date: Tue, 20 May 2003 10:28:47 +0000 (UTC) Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: References: <9fa75d42.0304230424.10612b1a@posting.google.com> <254c16a.0305140549.3a87281b@posting.google.com> <9fa75d42.0305141747.5680c577@posting.google.com> <1053027582.984315@master.nyc.kbcfp.com> <3ec4b5c5$1@news.wineasy.se> <254c16a.0305160930.40bb42f9@posting.google.com> <9fa75d42.0305181502.53703035@posting.google.com> <3EC83ABB.60702@attbi.com> NNTP-Posting-Host: sinus.csv.ica.uni-stuttgart.de X-Trace: news.uni-stuttgart.de 1053426527 20321 129.69.118.70 (20 May 2003 10:28:47 GMT) X-Complaints-To: news@news.uni-stuttgart.de NNTP-Posting-Date: Tue, 20 May 2003 10:28:47 +0000 (UTC) User-Agent: tin/1.5.12-20020311 ("Toxicity") (UNIX) (Linux/2.4.20-ica2-k7-xfs (i686)) Xref: archiver1.google.com comp.lang.java.advocacy:64251 comp.object:63744 comp.lang.ada:37553 comp.software-eng:19314 Date: 2003-05-20T10:28:47+00:00 List-Id: In comp.lang.ada Robert I. Eachus wrote: > In actual practice I would be more likely to declare it to be a > fixed-point type with a declaration like: > type Latitude is digits 8 delta 0.000001 range -90.0..90.0; > or if I wanted to represent hundreths of a second exactly: > type Latitude is delta 1.0/360000 range -90.0..90.0; > for Latitude'Small use 1.0/360000; thank you, Robert, for your excellent contribution: you should have sent it a couple of years sooner ;-) OTOH, thanks to Ada it is quite easy to update my code http://www.csv.ica.uni-stuttgart.de/homes/ph/adapilotresources/basic_tools/coords.ads for enhanced precision. For storage reasons I could?should offer different types of precision. -- --Peter Hermann(49)0711-685-3611 fax3758 ica2ph@csv.ica.uni-stuttgart.de --Pfaffenwaldring 27 Raum 114, D-70569 Stuttgart Uni Computeranwendungen --http://www.csv.ica.uni-stuttgart.de/homes/ph/ --Team Ada: "C'mon people let the world begin" (Paul McCartney)