[issue3024] Integer conversion inconsistent

2008-06-01 Thread Razvan Cosma
Razvan Cosma <[EMAIL PROTECTED]> added the comment: Sorry for not writing completely above - python does neither, it rounds to the integer closest to zero ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3024] Integer conversion inconsistent

2008-06-01 Thread Razvan Cosma
Razvan Cosma <[EMAIL PROTECTED]> added the comment: Hello, As far as I know, the correct conversion is to either round to the nearest, or to the smaller integer, but not both. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3024] Integer conversion inconsistent

2008-06-01 Thread Razvan Cosma
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 >>>