[Python-Dev] trunc()
Raymond Hettinger
python at rcn.com
Sun Jan 27 18:30:16 CET 2008
[Raymond Hettinger]
>> The idea that programmers are confused by int(3.7)-->3 may not be nuts, but it doesn't match any experience I've had with any
>> programmer, ever.
[Christian Heimes]
> You haven't been doing newbie support in #python lately. Statements like
> Python is rounding wrong are common.
Of course, those floating point repr questions are common, but that wasn't the issue here.
The trunc() protagonists are contending that the int(f) function will be confused with the round(f, n) function. I've never seen
than come up, ever.
Raymond
More information about the Python-Dev
mailing list