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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b257fba0affa289 X-Google-Attributes: gid103376,public From: Preben Randhol Subject: Re: fixed type (delta) in ada Date: 1999/11/29 Message-ID: #1/1 X-Deja-AN: 554470779 References: <383f6dbb.22609744@news.tstonramp.com> <81pvi5$sl1$1@nnrp1.deja.com> <38409C87.69EC865@easystreet.com> <81tue8$evd$1@nnrp1.deja.com> <3842A11A.6833A317@easystreet.com> X-Complaints-To: usenet@itea.ntnu.no X-Trace: kopp.stud.ntnu.no 943892933 4868 129.241.83.82 (29 Nov 1999 16:28:53 GMT) Organization: ProgramVareVerkstedet NNTP-Posting-Date: 29 Nov 1999 16:28:53 GMT Newsgroups: comp.lang.ada Date: 1999-11-29T16:28:53+00:00 List-Id: lutz@iks-jena.de (Lutz Donnerhacke) writes: | * Al Christians wrote: | > F : Long_Float := 0.0300000000000000; | | First convertion. Might be 0.0300001244 afterwards. It prints out as 3.00000000000000E-02 (if you use Ada.Long_Float_Text_IO (GNAT)) | > Money_Io.Put(Money(F)); -- GNAT 3.12p Puts 0.03 | | Second convertion. | | > Money_Io.Put(Money(0.0300000000000000)); -- GNAT 3.12p Puts 0.02 | | A single convertion. Even Money_Io.Put(Money(Long_Float(0.0300000000000000))); gives 0.02 | Of course. Playing near T'Small is hazardous. I would guess so :-) -- Preben Randhol -- [randhol@pvv.org] -- [http://www.pvv.org/~randhol/] "Det eneste trygge stedet i verden er inne i en fortelling." -- Athol Fugard