Article View: borland.public.cppbuilder.nativeapi
Article #6310Re: format question
From: Ed Mulroy [TeamB]
Date: Wed, 25 May 2005 01:11
Date: Wed, 25 May 2005 01:11
34 lines
1910 bytes
1910 bytes
> What about if I want to change the number after the
> point in two numbers? 12.3 becomes 000012.30
---------------------
C:\Documents and Settings\Administrator\My Documents\Lookat\q099
>type test.cpp
#include <stdio.h>
int main()
{
double d = 12.3;
printf("%09.2f\n", d);
return 0;
}
C:\Documents and Settings\Administrator\My Documents\Lookat\q099
>bcc32 -WCR test
Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland
test.cpp:
Turbo Incremental Link 5.66 Copyright (c) 1997-2002 Borland
C:\Documents and Settings\Administrator\My Documents\Lookat\q099
>test
000012.30
C:\Documents and Settings\Administrator\My Documents\Lookat\q099
>
---------------------
. Ed
> Karim wrote in message
> news:42933ba8$1@newsgroups.borland.com...
Technical Details
Message-ID:
<4293d0e0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4292f5a8$1@newsgroups.borland.com> <42931256$1@newsgroups.borland.com> <42933ba8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3b7f7b4a56d80b10 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ed Mulroy [TeamB]" <dont_email_me@invalid.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4292f5a8$1@newsgroups.borland.com> <42931256$1@newsgroups.borland.com> <42933ba8$1@newsgroups.borland.com> Subject: Re: format question Date: Tue, 24 May 2005 21:11:37 -0400 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 12.161.27.43 Message-ID: <4293d0e0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1116983520 12.161.27.43 (24 May 2005 18:12:00 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail