These are available for rather any modern C++ compiler. However, some special aspects are rather hard to find and easy to check out. No doubt, anybody else has done it before for sure. If I ever could find a search engine expression to throw this out among the first 100 hits...
| print-float | ... | ostream& operator << (ostream&, double), standard versus exponent format |
| print-newline | ... | how to print newline characters as is (Unix like newlines in MS Windows) |