comp.lang.ada
 help / color / mirror / Atom feed
* Newbie Q: Zero fill in Put
@ 1997-09-01  0:00 Larry Coon
  1997-09-02  0:00 ` John Herro
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Larry Coon @ 1997-09-01  0:00 UTC (permalink / 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




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

end of thread, other threads:[~1997-09-08  0:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-01  0:00 Newbie Q: Zero fill in Put Larry Coon
1997-09-02  0:00 ` John Herro
1997-09-02  0:00 ` Jacob Sparre Andersen
1997-09-05  0:00   ` Robert Dewar
1997-09-03  0:00 ` Pascal Obry
1997-09-04  0:00 ` Robert Dewar
1997-09-08  0:00 ` Larry Coon

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