Double conversion???

  • Thread starter Thread starter Duncan Winn
  • Start date Start date
Duncan said:
How can I convert from a double variable to a char* ???

There are a variety of options, including C I/O, the _ecvt / _fcvt /
_gcvt library functions (which may not be portable), or a "lexical_cast"
through a stringstream (see boost::lexical_cast).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top