I was trying to do this in Python 3.5.2:
int(204221389795918291262976/10000)
but got the unexpected result: 20422138979591827456
It's working fine in Python 2.7.12, result is: 20422138979591829126L
Any idea why Python 3 gave me the wrong result?
Copyright Notice:Content Author:「EricY」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/39308302/strange-error-in-python3-when-doing-big-int-calculation