The output value at code execution is
999999999999991611392. I wonder what the error is.
In Python3, the division is a floating point operation, unlike Python2. As for floating point constraints, https://docs.python.org/3/tutorial/floatingpoint.html Please refer to .
So the solution is to divide the whole number by Python3. If you use two //s as shown below, it is an integer division.
© 2022 pinfo. All rights reserved.