I looked at the format flags for streams but I can't get them to do what I want. The default behavior works fine except when the numbers are very small. Here is what I tried and what I would like to do:
It isn't possible to make very small numbers output as decimals and not scientific notation. You can try this though, it may work for very small numbers: