[issue36151] Incorrect answer when calculating 11/3

Zachary Ware report at bugs.python.org
Thu Feb 28 16:20:37 EST 2019


Zachary Ware <zachary.ware at gmail.com> added the comment:

This has nothing to do with IDLE and everything to do with how floating point numbers work; have a read through https://docs.python.org/3/tutorial/floatingpoint.html for an introduction to floating point.  If you need exact decimal math, use the `decimal` module instead.

----------
assignee: terry.reedy -> 
components:  -IDLE
nosy: +zach.ware
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
title: Incorrect answer when calculating 11//3 -> Incorrect answer when calculating 11/3

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


More information about the Python-bugs-list mailing list