[Python-Dev] trunc()

Raymond Hettinger python at rcn.com
Fri Jan 25 21:00:56 CET 2008


[GvR]
> Does no-one thinks it means round(f) either? 

Heck no.  The int() and round() functions have been in Lotus and Excel for an eternity and nobody has a problem learning what those functions do.

Also, the extra argument for round(f, n) makes it clear that it can return other floats rounded to n-digits.

I've taught a lot of classes to spreadsheet users and have observed that people get it right away.  


Raymond


More information about the Python-Dev mailing list