linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* printf *%f
@ 2011-01-12  7:39 ratheesh k
  2011-01-12  7:46 ` Bert Wesarg
  0 siblings, 1 reply; 7+ messages in thread
From: ratheesh k @ 2011-01-12  7:39 UTC (permalink / raw)
  To: linux-c-programming

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-01-12  9:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12  7:39 printf *%f ratheesh k
2011-01-12  7:46 ` 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

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).