Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'computed': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'wrong,': 0.09; 'calculator': 0.16; 'oct': 0.16; 'precision,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:fails': 0.16; 'displayed': 0.22; 'least': 0.25; 'fixed': 0.28; 'header:X-Complaints-To:1': 0.28; "d'aprano": 0.29; 'steven': 0.29; 'value)': 0.29; 'point': 0.31; '(and': 0.32; 'could': 0.32; 'maintained': 0.33; 'url:home': 0.33; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'received:org': 0.36; 'but': 0.36; 'scientific': 0.36; "didn't": 0.36; 'charset:us-ascii': 0.36; 'beyond': 0.37; 'two': 0.37; 'being': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'most': 0.61; 'first': 0.61; 'more': 0.63; 'calculations': 0.84; 'pocket': 0.84; 'dennis': 0.91; 'received:108': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: a.index(float('nan')) fails Date: Sat, 27 Oct 2012 00:48:46 -0400 Organization: > Bestiaria Support Staff < References: <5089F33A.8010804@mrabarnett.plus.com> <508ab917$0$29967$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-73-117-245.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351313336 news.xs4all.nl 6864 [2001:888:2000:d::a6]:35028 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32266 On 26 Oct 2012 16:23:51 GMT, Steven D'Aprano declaimed the following in gmane.comp.python.general: > Anyone who has used a pocket calculator will be used to floating point > calculations being wrong, so much so that most people don't even think I don't know about the more modern calculators, but at least up through my HP-41CX, HP calculators didn't do (binary) "floating point"... They did a form of BCD with a fixed number of significant /decimal/ digits (and did not keep a guard digit -- whereas my first scientific calculator maintained one or two guard digits which were beyond the displayable precision, but could be seen by subtracting the displayed value from the computed value) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/