Just as the title, how do I convert double to string in scientific notation faster than sprintf in c++?
I have lots of (about 1e10) double numbers, and have to convert all to string in this format: ±*.*********E±***, which has 10 significance digits.
But sprintf and stringstream are too slow, Is there any faster way?
Thanks.