Liam Stewart <liams@redhat.com> writes:
>>> What I would like to get out of the configurability of floating-point
>>> numbers is:
>>> 1. The ability to dump them in binary or hex format for lossless
>>> dump/reload. (printf("%a") does that.)
>>
>> On some platforms... I'd be happier with this if it were more portable...
> Roll our own? %a and %A are C99 so are much less portable than most
> other printf conversion specifiers.
Hmm ... rolling our own might actually not be too unreasonable ...
and the lack of lossless dump/reload for floats has certainly been
a sore point for a long time, so expending some effort here is
justified.
regards, tom lane