Message71997
I agree, longs should be correctly rounded when coerced to floats.
There is an ugly (but amusing) workaround while people wait for this
patch: Go via a string:
int(float(repr(295147905179352891391)[:-1]))
Though I assume this relies on the platform's strtod working correctly.
Which it does for me. |
|
Date |
User |
Action |
Args |
2008-08-26 21:10:33 | drj | set | recipients:
+ drj, mark.dickinson |
2008-08-26 21:10:33 | drj | set | messageid: <1219785033.05.0.251841272286.issue3166@psf.upfronthosting.co.za> |
2008-08-26 21:10:32 | drj | link | issue3166 messages |
2008-08-26 21:10:31 | drj | create | |
|