comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Newbie Q: Zero fill in Put
Date: 1997/09/05
Date: 1997-09-05T00:00:00+00:00	[thread overview]
Message-ID: <dewar.873459517@merv> (raw)
In-Reply-To: 1997Sep2.142611.4003@news.nbi.dk


Jacob says (of outputting numbers with leading zeroes)

<<I do not think there is a routine to do it in the standard libraries, but it
is not hard to implement with a few calls to routines in the standard
libraries.>>


No, that's wrong, there are extensive formatting capabilities defined in
Ada 95 that share the concept of COBOL picture strings. This is a particularly
trivial case (you just use a picture of all 9's). Have a look at the package
Ada.Text_IO.Editing in annex G. This capability is fully implemented in all
current versions of GNAT.





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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-01  0:00 Newbie Q: Zero fill in Put Larry Coon
1997-09-02  0:00 ` Jacob Sparre Andersen
1997-09-05  0:00   ` Robert Dewar [this message]
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