[IronPython] precision problem with Int64

Ronnie Maor ronnie.maor at gmail.com
Mon May 19 10:47:07 CEST 2008


Hi all,

Is the following a known bug? (IPy 1.1.1)

>>> import System
>>> n = 8591464408876390743
>>> x = System.Int64(n)
>>> x
8591464408876390400L
>>> y = System.Int64(str(n))
>>> y
8591464408876390743L
>>> x == y
False

n is positive and contained in 63 bits, so there shouldn't even be
signed/unsigned issues.

?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080519/a851c075/attachment.html>


More information about the Ironpython-users mailing list