[issue34703] Unexpected Arithmetic Result

2018-09-16 Thread Mark Dickinson


Mark Dickinson  added the comment:

This isn't a bug; it's a result of Python using the hardware-provided binary 
floating-point, which can't represent all decimal numbers exactly.

Please take a look at https://docs.python.org/3/tutorial/floatingpoint.html for 
more information.

--
nosy: +mark.dickinson
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34703] Unexpected Arithmetic Result

2018-09-16 Thread chengxuncc


New submission from chengxuncc :

>>> 2359296/10/1000**2
0.235929602

>>> 2359296/1000
0.2359296

You can see it.

--
components: Interpreter Core
messages: 325478
nosy: chengxuncc
priority: normal
severity: normal
status: open
title: Unexpected Arithmetic Result
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com