human friendly hexrep???



The hexrep function irritated me a bit by being sorted LSB->MSB and not working for long doubles. I had constructed a re-sort, but couldn't get it to work for long doubles either. Now I saw by chance that there is a hex-format-specifier for printf in vanilla-C, 'A', which produces quite usable results for doubles, the results for long doubles with 'LA' are rather difficult to understand - '0x**8**.xxxyyy... and wrong exponent. Can someone:
- adapt printf for long doubles / explain to me what I may be doing wrong, or
- adapt hexrep in gnumeric for long doubles, and make it reverse sorted? I mean this needs something in goffice which as of now is defined for doubles only.
Could be a nice debugging tool.
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]