how to typecast double into string.

  • Thread starter Thread starter Guest
  • Start date Start date
nsj said:
How to typecast double into ascii or string?

You don't.

How do you create a string with a decimal representation of the value of a
double? Now that's a much better question:

Depending on what kind of a "string" you want, you might use:

'C' string: sprintf(), snprintf()
MFC/ATL: CString.Format()
Standard C++: std::ostringstream
..NET: System::String::Format()

.... or many other choices. If you can provide a more complete description
of what you need to do, someone can give a more specific answer.

-cd
 
Back
Top