comp.lang.ada
 help / color / mirror / Atom feed
From: Larry Coon <lmcoon@home.com>
Subject: Newbie Q: Zero fill in Put
Date: 1997/09/01
Date: 1997-09-01T00:00:00+00:00	[thread overview]
Message-ID: <340B809C.24AE@home.com> (raw)


I looked through the docs I have & the FAQ
on Ada Home, but I didn't see an answer to
what I hope is a simple question. How does
one zero-fill for integers in a Put call?

eg:

declare
   x: integer := 2;
   package int_io is new integer_io(integer);
   use int_io;
begin
   Put(x);
end;

How do I make it output with leading zeros,
eg: 02, 002, 00000002, etc?  The width parameter
seems to only fill with spaces.

Larry Coon
larry@fs2.assist.uci.edu
and lmcoom@home.com




             reply	other threads:[~1997-09-01  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-01  0:00 Larry Coon [this message]
1997-09-02  0:00 ` Newbie Q: Zero fill in Put Jacob Sparre Andersen
1997-09-05  0:00   ` Robert Dewar
1997-09-02  0:00 ` John Herro
1997-09-03  0:00 ` Pascal Obry
1997-09-04  0:00 ` Robert Dewar
1997-09-08  0:00 ` Larry Coon
replies disabled

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