comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Ada.Text_IO.Fixed_IO - strange prefix in output
Date: Tue, 19 Aug 2008 08:03:15 -0700 (PDT)
Date: 2008-08-19T08:03:15-07:00	[thread overview]
Message-ID: <3327cf9b-77ee-4fda-be11-603a53f47ff7@m73g2000hsh.googlegroups.com> (raw)

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



             reply	other threads:[~2008-08-19 15:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-19 15:03 Maciej Sobczak [this message]
2008-08-20 11:48 ` Ada.Text_IO.Fixed_IO - strange prefix in output Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox