next up previous
Next: Class interactions Up: C++/C Previous: How do I email


Converting from numbers to strings

Here's a short function that will do it:
string dtos(double d) {  
  strstream s;  
  s << d;  
  return s.str();  
}



Chris Paciorek 2012-01-21