[Python-Dev] trunc() (original) (raw)
Raymond Hettinger python at rcn.com
Fri Jan 25 21:00:56 CET 2008
- Previous message: [Python-Dev] trunc()
- Next message: [Python-Dev] Organization of ABC modules
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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
- Previous message: [Python-Dev] trunc()
- Next message: [Python-Dev] Organization of ABC modules
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]