[issue1924] %i string format breaks for large floats (incomplete int conversion)

2008-01-24 Thread Facundo Batista
Facundo Batista added the comment: Duplicates #1742669 (copied this text to there) -- nosy: +facundobatista resolution: -> duplicate status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue1924] %i string format breaks for large floats (incomplete int conversion)

2008-01-24 Thread David Goodger
New submission from David Goodger: I ran across this bug in some legacy production code when numbers got high: >>> '%i' % 2e9 '20' >>> '%i' % 3e9 Traceback (most recent call last): File "", line 1, in ? TypeError: int argument required It looks like the float is being automatically co