From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a468bd087b9e90b1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-05 16:45:31 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "B. Douglas Hilton" Newsgroups: comp.lang.ada Subject: Re: question about printing numbers on screen Date: Thu, 05 Jul 2001 19:50:37 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3B44FD4D.4297C847@engineer.com> X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3 i686) X-Accept-Language: en MIME-Version: 1.0 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:9515 Date: 2001-07-05T19:50:37-04:00 List-Id: Use the modulus operation and a switch to format your IO. - Doug Beau wrote: > How would I print an integer variable on the screen whose number was in the > thousands > say 10000 but have it print like this: > > 10,000 > > how would I put in the comma to seperate? > -- > ~Beau~ > beau@hiwaay.net