Message143443
Hi all,
I think there is a long-standing bug (it has made it into books on Google...) in the struct.pack() function, at least if the 'd' format string is selected. On both Win and Ubuntu the string returned for pack('!d',1.2345) is '?\xf3\xc0\x83\x12n\x97\x8d', whereas the correct 8 (!!) bytes are 3F F3 C0 83 12 6E 97 8D.
Link to a published VBA UDF for Excel is in the file; that UDF reproduces the examples given in wikipedia on the IEEE 754 / DP pages correctly.
Regards, Schorsch |
|
Date |
User |
Action |
Args |
2011-09-02 23:07:33 | SchorschMCMLX | set | recipients:
+ SchorschMCMLX |
2011-09-02 23:07:33 | SchorschMCMLX | set | messageid: <1315004853.67.0.138940038832.issue12889@psf.upfronthosting.co.za> |
2011-09-02 23:07:32 | SchorschMCMLX | link | issue12889 messages |
2011-09-02 23:07:32 | SchorschMCMLX | create | |
|