Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

Hi Riccardo,

In the future, would you mind not posting screenshots of code or errors? 
Rather, copy and paste the text. That makes it easier for others to replicate 
the error, and also allows visually impaired and blind people using screen 
leaders.

Otherwise you force us to retype your code, which can introduce errors.

This is not a bug, it is normal and expected behaviour. You type the number 
"123456789012345678901234567890.76" but floats only have 64 bits of precision, 
so that becomes the float 1.2345678901234568e+29 which is *exactly* the whole 
number 123456789012345677877719597056 just as `int` reports.

So nothing to do with `int`, it is normal behaviour for floats.

----------
nosy: +steven.daprano
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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

Reply via email to