delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/18/11:24:08

Message-ID: <37E3A735.30B5B4C0@montana.com>
From: bowman <bowman AT montana DOT com>
X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i586)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: About numbers.
References: <7rmff2$5rt$1 AT nnrp1 DOT deja DOT com> <Pine DOT SOL DOT 3 DOT 96 DOT 990916075736 DOT 4565B-100000 AT giasbga> <37E2A43F DOT 42F5E42B AT pepparkakor DOT demon DOT nl>
Lines: 11
Date: Sat, 18 Sep 1999 08:52:37 -0600
NNTP-Posting-Host: 208.4.224.17
X-Trace: newsfeed.slurp.net 937666225 208.4.224.17 (Sat, 18 Sep 1999 09:50:25 CDT)
NNTP-Posting-Date: Sat, 18 Sep 1999 09:50:25 CDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Roger wrote:
> 
> How do I get dubbeldigit numbers? If my randomize get number 4,then I want it
> to write out 04..Can I do it in Rhide??

printf("%2.2d", random_number);

-- 
Bear Technology  Making Montana safe for Grizzlies

http://people.montana.com/~bowman/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019