[New-bugs-announce] [issue39738] mod operation with large number is not correct.
wjzbf
report at bugs.python.org
Mon Feb 24 04:28:03 EST 2020
New submission from wjzbf <hgkdzbf6 at 163.com>:
hello python,
when i calculate:
151476660579404160000-151476660579404160000//1000000007 * (1e9+7)
it returns
67534848.0
when i calculate
151476660579404160000 % (1e9+7)
it returns
67536199.0
the two values are not equal.
how to explain it?
thanks
zbf
----------
components: Windows
messages: 362574
nosy: paul.moore, steve.dower, tim.golden, wjzbf, zach.ware
priority: normal
severity: normal
status: open
title: mod operation with large number is not correct.
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39738>
_______________________________________
More information about the New-bugs-announce
mailing list