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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5f074592a5f4c145,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!postnews.google.com!m73g2000hsh.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Ada.Text_IO.Fixed_IO - strange prefix in output Date: Tue, 19 Aug 2008 08:03:15 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3327cf9b-77ee-4fda-be11-603a53f47ff7@m73g2000hsh.googlegroups.com> NNTP-Posting-Host: 128.141.45.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1219158195 7307 127.0.0.1 (19 Aug 2008 15:03:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 19 Aug 2008 15:03:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000hsh.googlegroups.com; posting-host=128.141.45.246; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1652 Date: 2008-08-19T08:03:15-07:00 List-Id: Consider: with Ada.Text_IO; with Ada.Calendar; procedure A is package Duration_IO is new Ada.Text_IO.Fixed_IO (Ada.Calendar.Day_Duration); D : Ada.Calendar.Day_Duration := 0.0; begin Duration_IO.Put (D); end A; The above program produces the following output: N = 1 0.000000000 I use GNAT 3.4.6 (yes, that old). Was this a compiler/runtime bug? The output from newer compiler contains only the number. -- Maciej Sobczak * www.msobczak.com * www.inspirel.com Database Access Library for Ada: www.inspirel.com/soci-ada