Message74698
I think the complaint is that presumably, when expanding the float to
double in unpacking, the result is not zero-padded. I cannot reproduce
the problem, though:
py>
hexlify(struct.pack(">d",struct.unpack(">f",struct.pack(">f",1.8183e-7))[0]))
'3e8867a1a0000000'
Seems to me that the zero-padding works just well.
TD22057, why do you say that 1.818300034983622e-07 is not the closest
number. AFAICT, this is not true: this *is* the closest number. |
|
Date |
User |
Action |
Args |
2008-10-13 21:46:00 | loewis | set | recipients:
+ loewis, vstinner, TD22057 |
2008-10-13 21:46:00 | loewis | set | messageid: <1223934360.43.0.153143731297.issue4114@psf.upfronthosting.co.za> |
2008-10-13 21:45:58 | loewis | link | issue4114 messages |
2008-10-13 21:45:58 | loewis | create | |
|