Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. format double

format double

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wong1907
    wrote on last edited by
    #1

    hello, I am looking for a way to convert a double to the char representation. e.g. double x=12.3456 char y[10]; :)

    R R 2 Replies Last reply
    0
    • W wong1907

      hello, I am looking for a way to convert a double to the char representation. e.g. double x=12.3456 char y[10]; :)

      R Offline
      R Offline
      Rick York
      wrote on last edited by
      #2

      Have a look at sprintf. The Ten Commandments For C Programmers

      1 Reply Last reply
      0
      • W wong1907

        hello, I am looking for a way to convert a double to the char representation. e.g. double x=12.3456 char y[10]; :)

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        See CString::Format() or sprintf(). /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

        W 1 Reply Last reply
        0
        • R Ravi Bhavnani

          See CString::Format() or sprintf(). /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

          W Offline
          W Offline
          wong1907
          wrote on last edited by
          #4

          Thx you very much!!!:-D

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups