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/2018-September/155365.html below:

[Python-Dev] Change in Python 3's "round" behavior

[Python-Dev] Change in Python 3's "round" behavior [Python-Dev] Change in Python 3's "round" behaviorGreg Ewing greg.ewing at canterbury.ac.nz
Sun Sep 30 18:15:53 EDT 2018
Chris Angelico wrote:
> ]That
> means that any representable number actually has to indicate a range
> of values centered on that value.

That's not always true -- it depends on the source of the
information. For example, a reading of 5 seconds on a clock
with 1 second resolution actually represents a value between
5 and 6 seconds.

So if you're fussy about rounding, you might want to round
clock readings differently from measurements on a ruler.

-- 
Greg
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