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/2007-January/070795.html below:

[Python-Dev] Floor division

[Python-Dev] Floor division [Python-Dev] Floor divisionTim Peters tim.peters at gmail.com
Fri Jan 26 03:38:58 CET 2007
...

[Tim]
>> fractional part of x == fmod(x, 1.0) == modf(x)[0], so you could use
>> either.

[Anders J. Munch]
> Actually, on the off chance that time.time() is negative, he can use
> neither.  It has to be math.ceil, float.__mod__ or divmod.

If time.time() is negative, I expect this would be the least of his worries :-)

Even on most Unixish boxes, Python's time.time() is immune to "the
year 2038 problem" anyway, since it uses POSIX's gettimeofday()
instead of C's time() when it can.
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