Thread: Format Specifier

  1. #1
    Registered User
    Join Date
    Jun 2007
    Location
    Mysore, India
    Posts
    14

    Question Format Specifier

    Hi All,

    Can someone tell me the format specifier to be used in the printf statement for printing values of double datatype? For eg. "%d" is used for int and "%f" for float. Similarly what should be used for double data type?

    Thanks,
    Babu

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    You asked the same question 2 days ago, and told where to look to read all about it.
    http://cboard.cprogramming.com/showthread.php?t=91141
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. format specifier of size_t
    By broli86 in forum C Programming
    Replies: 2
    Last Post: 07-01-2008, 10:22 AM
  2. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  3. string format specifier
    By Bleech in forum C Programming
    Replies: 4
    Last Post: 07-31-2006, 04:43 PM
  4. format specifier
    By s_siouris in forum C Programming
    Replies: 5
    Last Post: 05-13-2006, 05:22 AM
  5. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM