A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-January/076501.html below:

[Python-Dev] trunc()

[Python-Dev] trunc() [Python-Dev] trunc()Raymond Hettinger python at rcn.com
Fri Jan 25 20:50:56 CET 2008
>.some pocket calculators have an INT function, defined 
> as floor(x) when x is positive and ceil(x) when x is negative

That's the mathematical definition.  The way they explain
it is dirt simple:  return the integer portion of a number.

Some of the calculators that have int() also have frac()
which has the obvious interpretation.



Raymond
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4