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,38d8b4bd1cb45ff,start X-Google-Attributes: gid103376,public From: tmoran@bix.com Subject: choice of fixed point type Date: 2000/03/01 Message-ID: #1/1 X-Deja-AN: 591957310 X-Complaints-To: abuse@pacbell.net X-Trace: news.pacbell.net 951949087 206.170.2.150 (Wed, 01 Mar 2000 14:18:07 PST) Organization: SBC Internet Services NNTP-Posting-Date: Wed, 01 Mar 2000 14:18:07 PST Newsgroups: comp.lang.ada Date: 2000-03-01T00:00:00+00:00 List-Id: Why does type duration is delta 1.0E-13 range 0.0 .. 0.000_1; f : float; i : integer := 10_000; begin f := float(0.000_0001/i); ada.text_io.put_line(float'image(f)); f := float(duration'(0.000_0001)/i); ada.text_io.put_line(float'image(f)); f := 0.000_0001/float(i); ada.text_io.put_line(float'image(f)); print 0.00000E+00 9.94760E-12 1.00000E-11 Is / always treated as a call on function "/"(Left : Standard.Duration; Right : Integer) return Standard.Duration; ?