Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: What is precision of a number representation? (was: Curious Omission In New-Style Formats) Date: Tue, 12 Jul 2016 06:56:10 +1000 Lines: 39 Message-ID: References: <834b1cce-38dd-474c-8915-4ff1cd6b27ec@googlegroups.com> <7fcc8c21-106f-41d4-a5ba-409f3b54a56d@googlegroups.com> <5783c91e$0$1622$c3e8da3$5496439d@news.astraweb.com> <5783D63F.5040307@stoneleaf.us> <8560sbvqqd.fsf_-_@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de m+KhwY+XCuyDl2wf40eOPwcll5cF2u/xaUbNSt7j8iDQ== Cancel-Lock: sha1:LbXPG829DmL9JTV7LhV/G6DMxZo= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.085 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.04; 'claimed': 0.07; 'means,': 0.07; 'subject:number': 0.07; 'degree,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'digits.': 0.16; 'fuzzy': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'integer': 0.18; 'tells': 0.18; 'saying': 0.22; 'seems': 0.23; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'actual': 0.28; "i'm": 0.30; 'maybe': 0.33; 'but': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'received:org': 0.37; 'aspects': 0.37; 'represent': 0.38; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'course': 0.62; 'is.': 0.63; 'different': 0.63; 'our': 0.64; 'skip:\xe2 10': 0.70; 'contrary': 0.72; 'gain': 0.82; '8bit%:77': 0.84; '_o__)': 0.84; 'distinguish': 0.84; 'learn.': 0.84; 'maths': 0.84; 'necessity': 0.84; 'received:125': 0.84; 'ethan': 0.91; 'furman': 0.91; 'hundred': 0.96 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <8560sbvqqd.fsf_-_@benfinney.id.au> X-Mailman-Original-References: <834b1cce-38dd-474c-8915-4ff1cd6b27ec@googlegroups.com> <7fcc8c21-106f-41d4-a5ba-409f3b54a56d@googlegroups.com> <5783c91e$0$1622$c3e8da3$5496439d@news.astraweb.com> <5783D63F.5040307@stoneleaf.us> Xref: csiph.com comp.lang.python:111294 Ethan Furman writes: > I will readily admit to not having a maths degree, and so of course to > me saying the integer 123 has a precision of 5, 10, or 99 digits seems > like hogwash to me. Precision is not a property of the number. It is a property of the *representation* of that number. The representation “1×10²” has a precision of one digit. The representation “100” has a precision of three digits. The representation “00100” has a precision of five digits. The representation “100.00” also has a precision of five digits. Those can all represent the same number; or maybe some of them represent “one hundred” and others represent “one hundred and a millionth”. The representation is only an approximation of the actual number, and the precision tells us how fuzzy the approximation is. None of these say how *accurate* the representation is; if those are representations of the number “seven thousand” they are not very accurate, while they might be passably accurate for the number “one hundred and seventy”. > But I'm always willing to learn. So please explain what 123 with a > precision of five integer digits means, and what to do we gain by > saying such a thing? We gain clarity of speech: we distinguish the different aspects (how many digits of this representation are actually claimed to represent the number?) communicated by a representation. -- \ “… no testimony can be admitted which is contrary to reason; | `\ reason is founded on the evidence of our senses.” —Percy Bysshe | _o__) Shelley, _The Necessity of Atheism_, 1811 | Ben Finney