[Python-Dev] trunc()
Raymond Hettinger
python at rcn.com
Tue Jan 29 04:40:12 CET 2008
[Terry Reedy]
> For one data point, I asked my bright 13-year-old for the 'integer part' of
> 3.1, 3.9, -3.1, and -3.9 and got the expected 3,3,-3,-3 (as with int()).
> But asking 'truncate' the same numbers or even 'truncate toward zero' got a
> blank stare, which did not surprise me too much as it is not a common
> (American) English word.
Even to adults, the word has other meanings:
http://en.wikipedia.org/wiki/Truncation_%28disambiguation%29
Raymond
More information about the Python-Dev
mailing list