How to use the format %4.3f in C++, not sprintf ..

Is there any way to use the c sprintf format style %#.#f to formating numbers to std::string ?
Thanks
Not directly.
Topic archived. No new replies allowed.