C Carl Daniel [VC++ MVP] Jun 3, 2005 #2 nsj said: How to typecast double into ascii or string? Click to expand... 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:stringstream ..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
nsj said: How to typecast double into ascii or string? Click to expand... 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:stringstream ..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