A
Anjo Gasa
I have a couple questions regarding iostreams output. I just finished
searching the group archive and don't believe they have been
specifically address before.
1. How can one remove leading zero's from floating numbers. For
example, consider this output: 0.2956097. Are there any manipulators
that will set a stream to output .2956097 instead, removing the
leading zero?
2. How can one control the width of the exponent field. For example,
consider the following output: 3.1682894E-009. Are there any
manipulators that will set a stream to output the exponent as "E-09"
instead of "E-009".
Anjo
searching the group archive and don't believe they have been
specifically address before.
1. How can one remove leading zero's from floating numbers. For
example, consider this output: 0.2956097. Are there any manipulators
that will set a stream to output .2956097 instead, removing the
leading zero?
2. How can one control the width of the exponent field. For example,
consider the following output: 3.1682894E-009. Are there any
manipulators that will set a stream to output the exponent as "E-09"
instead of "E-009".
Anjo