comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: question about printing numbers on screen
Date: Fri, 06 Jul 2001 00:26:07 GMT
Date: 2001-07-06T00:26:07+00:00	[thread overview]
Message-ID: <zA717.155489$%i7.103763014@news1.rdc1.sfba.home.com> (raw)
In-Reply-To: tk9rc9cc5cdk6a@corp.supernews.com

>say 10000 but have it print like this:
>
>10,000
>
>how would I put in the comma to seperate?
  If your compiler implements Annex F, Information Systems, you can do it
with a "picture string".  If not, you'll have to create an input string
with the value "10000" and build an output string with the commas in the
right places.  It's pretty easy with a "for ... in reverse" loop.



  parent reply	other threads:[~2001-07-06  0:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-05 22:42 question about printing numbers on screen Beau
2001-07-05 23:50 ` B. Douglas Hilton
2001-07-06  0:26 ` tmoran [this message]
2001-07-06  2:41 ` wzm
2001-07-06 21:41 ` David C. Hoos, Sr.
replies disabled

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