comp.lang.ada
 help / color / mirror / Atom feed
* Gnat's Ada.Float_Text_IO.Put problem
@ 2004-01-14 13:39 Stefano M.
  2004-01-14 14:58 ` Adrian Knoth
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Stefano M. @ 2004-01-14 13:39 UTC (permalink / raw)


Hi, I recently stumbled across this very weird behaviour from gnat's 
Ada.Float_Text_IO.Put, it seems to always return 0.0 regardless the 
actual value of the given parameter.
Have a look at the following test program:

with Ada.Float_Text_IO;

procedure Main is
    Sample_Float : Float := 10.123;
begin
    Put("Standard 'put' behaviour from Ada.Float_Text_IO: 10,123 = ");
    Ada.Float_Text_IO.Put(Sample_Float);
end Main;

And here's what I get:

ste@sim:~/prove$ ./main
Standard 'put' behaviour from Ada.Float_Text_IO: 10,123 = -0.00000E+00

The gnat's version I'm using is:

ste@sim:~/prove$ gnat
GNAT 3.3.2 Copyright 1996-2002 Free Software Foundation Inc.

The host I'm compiling on is:

ste@sim:~/prove$ uname -a
OSF1 sim V5.1 2650 alpha

(DEC Alpha Server running Tru64 Unix)

Does anybody have a clue on what's going on here?

Stefano



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2004-01-16 13:52 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-14 13:39 Gnat's Ada.Float_Text_IO.Put problem Stefano M.
2004-01-14 14:58 ` Adrian Knoth
     [not found] ` <8c4gd1-ifb.ln1@beastie.ix.netcom.com>
2004-01-14 16:11   ` Stefano M.
2004-01-14 16:44     ` Adrian Knoth
2004-01-15  8:14       ` Stefano M.
2004-01-15  8:39         ` Adrian Knoth
2004-01-15 18:50         ` tmoran
2004-01-16  8:23           ` Duncan Sands
2004-01-16  8:48             ` tmoran
2004-01-16  9:45               ` Duncan Sands
2004-01-16 13:18                 ` Jeff C,
2004-01-16 13:52                   ` Duncan Sands
2004-01-15  1:55     ` Georg Bauhaus
2004-01-15  8:46       ` Stefano M.
2004-01-15 11:56         ` Georg Bauhaus
2004-01-15 11:02       ` Stefano M.
2004-01-15 14:20         ` Georg Bauhaus
2004-01-15  1:50 ` Jeff C,
2004-01-15  8:18   ` Stefano M.

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