J
John Friedland
'printf' has a '%a' conversion for floating-point output:
For example, printing '123456' with "|%13.4a|" produces
| 0x1.e240p+16|
I've looked through Josuttis and the header files, but I can't find
any flags or manipulators that could handle this. Is this possible
with stream I/O?
Supplementary question: does anyone know how to search for a '%a' in
Google groups?
Thanks -
John
The `%a' and `%A' conversions are meant for representing
floating-point numbers exactly in textual form so that they can be
exchanged as texts between different programs and/or machines. The
numbers are represented is the form [`-']`0x'H`.'HHH`p'[`+'|`-']DD.
For example, printing '123456' with "|%13.4a|" produces
| 0x1.e240p+16|
I've looked through Josuttis and the header files, but I can't find
any flags or manipulators that could handle this. Is this possible
with stream I/O?
Supplementary question: does anyone know how to search for a '%a' in
Google groups?
Thanks -
John