From: Bert Wesarg <bert.wesarg@googlemail.com>
To: ratheesh k <ratheesh.ksz@gmail.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: printf *%f
Date: Wed, 12 Jan 2011 08:46:08 +0100 [thread overview]
Message-ID: <AANLkTi=2DQ+YAC3vGGxfpJDLFusV+5Vkr1oE2AP6o8Tj@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikSFEK-5m0a1mFKbyFRwA7wNqTkzejbLEv_-=73@mail.gmail.com>
On Wed, Jan 12, 2011 at 08:39, ratheesh k <ratheesh.ksz@gmail.com> wrote:
> double x=45.9876 ;
>
> printf("%4.2f" , x); is working fine ... But printf("%*f , 4.2 , x) ;
printf("%*.*f" , 4, 2 , x) ;
Bert
> behaves odd in my fedora 8 pentium machine. any clue ?
>
> Does * substitute only integers ?
>
>
> -Ratheesh
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-01-12 7:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-12 7:39 printf *%f ratheesh k
2011-01-12 7:46 ` Bert Wesarg [this message]
[not found] ` <AANLkTi=f-TrLVC-S9PpY-HcLKgujNOtii7bG-U5tSPyy@mail.gmail.com>
2011-01-12 8:51 ` Bert Wesarg
[not found] ` <AANLkTin=9aSsQTUh8MXOsgpwPC8hotwXjk=XOFjHwiRa@mail.gmail.com>
2011-01-12 9:02 ` Bert Wesarg
2011-01-12 9:14 ` ratheesh k
[not found] ` <AANLkTinioDUcJ-1huPHJ3XoSkm63S14j5LzWOiQp7gmS@mail.gmail.com>
2011-01-12 9:53 ` Aniruddha Bhattacharyya
2011-01-12 9:54 ` Aniruddha Bhattacharyya
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=2DQ+YAC3vGGxfpJDLFusV+5Vkr1oE2AP6o8Tj@mail.gmail.com' \
--to=bert.wesarg@googlemail.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=ratheesh.ksz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).