New submission from Wlodek <wlo...@freenet.de>:

Python 3.8.5 (default, Jul 28 2020, 12:59:40) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> f=0.1234/100
>>> f2= f*10**8
>>> i2= int(f2)
>>> print("float=%f, float_2=%f, int(float_2)=%d" % (f, f2, int(f2)))
float=0.001234, float_2=123400.000000, int(float_2)=123399

----------
components: Library (Lib)
messages: 384807
nosy: wlodek
priority: normal
severity: normal
status: open
title: bug float to int
versions: Python 3.8

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

Reply via email to