New submission from Razvan Cosma <[EMAIL PROTECTED]>: This issue is probably older than I am, and was amazed to discover it in python: Python 2.5.2 (r252:60911, May 7 2008, 15:19:09) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 >>> int(float("-23.15")) -23 >>> int(float("-23.65")) -23 >>> int(float("24.9")) 24 >>> int(float("24.4")) 24 Is this by design? What is the python way of obtaining a correct result?
---------- components: None messages: 67609 nosy: helminthe severity: normal status: open title: Integer conversion inconsistent versions: Python 2.5 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3024> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com