New submission from Au Vo <auvo1...@gmail.com>:

In Python3, there is a discrepancy of integer division with decimal. 
Considering these two examples:

4/ .4 ==10.0. But 4//.4== 9.0 
Furthermore:

2//.2 == 9.0
3//.3 ==10.0
5//.5 ==10.0
6//.6 ==10.0

All answers should be 10.0? The problem is in Python3 and not in Python2. 
Python2 produces 10.0 as the answers for all of the above calculation. Is it a 
rounding out issue?

----------
messages: 335863
nosy: Au Vo
priority: normal
severity: normal
status: open
title: Integer Division discrepancy with decimal
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36028>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to