linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: ratheesh k <ratheesh.ksz@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: printf *%f
Date: Wed, 12 Jan 2011 13:09:08 +0530	[thread overview]
Message-ID: <AANLkTikSFEK-5m0a1mFKbyFRwA7wNqTkzejbLEv_-=73@mail.gmail.com> (raw)

double x=45.9876 ;

printf("%4.2f" , x); is working fine ...  But printf("%*f , 4.2 , x) ;
behaves odd in my  fedora 8 pentium machine. any clue ?

Does *  substitute only integers ?


-Ratheesh

             reply	other threads:[~2011-01-12  7:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-12  7:39 ratheesh k [this message]
2011-01-12  7:46 ` printf *%f Bert Wesarg
     [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='AANLkTikSFEK-5m0a1mFKbyFRwA7wNqTkzejbLEv_-=73@mail.gmail.com' \
    --to=ratheesh.ksz@gmail.com \
    --cc=linux-c-programming@vger.kernel.org \
    /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).