What is the most optimal way to achieve the same as this?
void foo(double floatValue, char* stringResult) { sprintf(stringResult, \"%f\", floatV
http://www.cplusplus.com/reference/iostream/stringstream/
double d=123.456; stringstream s; s << d; // insert d into s