[New-bugs-announce] [issue42890] bug float to int

Wlodek report at bugs.python.org
Mon Jan 11 05:26:19 EST 2021


New submission from Wlodek <wlodek at 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 <report at bugs.python.org>
<https://bugs.python.org/issue42890>
_______________________________________


More information about the New-bugs-announce mailing list