[New-bugs-announce] [issue35672] Error on divide

Jorge Teran report at bugs.python.org
Sun Jan 6 07:34:02 EST 2019


New submission from Jorge Teran <jteranp at gmail.com>:

The following code produces an error in the diivision in python 3.5, 3.7 works in python 2.7

import math
import sys

x=int(1000112004278059472142857)
y1=int(1000003)
y2=int(1000033)
y3=int(1000037)
y4=int(1000039)
print (int(y1y2y3y4))
print (x)
#this product equals x Correct
print (int(y2y3*y4))
n=int(x / y1)
print (n)
#n is an incorrect answer
#works in pythoin 2.7
#Gives an incorrect answe in python 3.6.7, 3.7.1

----------
components: Interpreter Core
messages: 333107
nosy: Jorge Teran
priority: normal
severity: normal
status: open
title: Error on divide
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35672>
_______________________________________


More information about the New-bugs-announce mailing list