Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73475
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <songofacandy@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; '21,': 0.07; 'subject:bug': 0.07; '0.02': 0.09; '0.1': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'bug': 0.12; '0.01': 0.16; '0.03': 0.16; '0.04': 0.16; '0.06': 0.16; '0.07': 0.16; '0.09': 0.16; '0.19': 0.16; 'url:ftp': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'install': 0.23; 'cc:2**0': 0.24; 'compare': 0.26; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.31; 'url:python': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'crazy': 0.36; 'url:listinfo': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'url:mail': 0.40; 'read': 0.60; 'url:3': 0.61; 'url:4': 0.69 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=nDoO2rKJEI9QKgPbpnlDqoc/0flRAqn1vPmPH2vr9YI=; b=wvgmH2L2VbcQbu39ex2OdAuAhpkVNbDw2uGcH9kEXI2nY1MDoC4Sp56Z/Rk5PpvRNj qu815N/ipHqCMQJRZ448qMOc7ldlEgV+GpL0ZYKWXMRQxCFD7JsD/XSMWKW828SyrbtD wT0bA/wcqRsBi8QmJlm0+qT2dN0Gyao3Zw2xQoi3U3yFjWnOJbbx0XnfGo32FaTTxVCP cIZwn0MBScuJcEUKMNpEjjv3oFLaCnChmk43bLbfaVhm3LdXvQc3ev2LQkBE2op7pisk WLn3rTh5iofvfo/lD1nSd4sjDhA2Aa0+Y4f3mDbKFYPOU3GAQwggG4KLPgdaMibxYsPS bfnw== |
| X-Received | by 10.140.109.118 with SMTP id k109mr9683427qgf.98.1403312812820; Fri, 20 Jun 2014 18:06:52 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <XnsA35313E634BA0fraserlonggmailcom34@216.196.109.145> |
| References | <XnsA35313E634BA0fraserlonggmailcom34@216.196.109.145> |
| From | INADA Naoki <songofacandy@gmail.com> |
| Date | Sat, 21 Jun 2014 10:06:32 +0900 |
| Subject | Re: python 3.44 float addition bug? |
| To | FraserL <fraser.long+usenet@nospamgmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| X-Mailman-Approved-At | Sat, 21 Jun 2014 03:50:47 +0200 |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11178.1403315448.18130.python-list@python.org> (permalink) |
| Lines | 77 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1403315448 news.xs4all.nl 2862 [2001:888:2000:d::a6]:40343 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:73475 |
Show key headers only | View raw
Read this: https://docs.python.org/3.4/tutorial/floatingpoint.html On Sat, Jun 21, 2014 at 9:57 AM, FraserL <fraser.long+usenet@nospamgmail.com> wrote: > I think I found a strange bug in python 3.4.1, > > fresh install of > > https://www.python.org/ftp/python/3.4.1/python-3.4.1.amd64.msi > > and a fresh install of > https://www.python.org/ftp/python/2.7.7/python-2.7.7.amd64.msi > to compare it to. > > #test code > z = 0.01 > p = 0.0 > for x, y in enumerate(range(1, 20)): > p += z > print(p) > #end > > > 3.4.1 output: > > 0.01 > 0.02 > 0.03 > 0.04 > 0.05 > 0.060000000000000005 > 0.07 > 0.08 > 0.09 > 0.09999999999999999 > 0.10999999999999999 > 0.11999999999999998 > 0.12999999999999998 > 0.13999999999999999 > 0.15 > 0.16 > 0.17 > 0.18000000000000002 > 0.19000000000000003 > > > 2.7.7 output: > > 0.01 > 0.02 > 0.03 > 0.04 > 0.05 > 0.06 > 0.07 > 0.08 > 0.09 > 0.1 > 0.11 > 0.12 > 0.13 > 0.14 > 0.15 > 0.16 > 0.17 > 0.18 > 0.19 > > > I'm not hugely accustomed to Python, but this seems crazy to me. > -- > https://mail.python.org/mailman/listinfo/python-list -- INADA Naoki <songofacandy@gmail.com>
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python 3.44 float addition bug? FraserL <fraser.long+usenet@NOSPAMgmail.com> - 2014-06-20 19:57 -0500
Re: python 3.44 float addition bug? FraserL <fraser.long+usenet@gmail.com> - 2014-06-20 20:11 -0500
Re: python 3.44 float addition bug? Gary Herron <gary.herron@islandtraining.com> - 2014-06-20 18:19 -0700
Re: python 3.44 float addition bug? Gary Herron <gary.herron@islandtraining.com> - 2014-06-20 18:07 -0700
Re: python 3.44 float addition bug? Chris Angelico <rosuav@gmail.com> - 2014-06-21 11:33 +1000
Re: python 3.44 float addition bug? INADA Naoki <songofacandy@gmail.com> - 2014-06-21 10:06 +0900
Re: python 3.44 float addition bug? Grant Edwards <invalid@invalid.invalid> - 2014-06-21 14:25 +0000
Re: python 3.44 float addition bug? Ned Deily <nad@acm.org> - 2014-06-21 12:24 -0700
Re: python 3.44 float addition bug? buck <workitharder@gmail.com> - 2014-06-23 17:55 -0700
Re: python 3.44 float addition bug? Chris Angelico <rosuav@gmail.com> - 2014-06-24 13:26 +1000
Re: python 3.44 float addition bug? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-06-24 17:30 +1200
Re: python 3.44 float addition bug? Steven D'Aprano <steve@pearwood.info> - 2014-06-24 06:34 +0000
Re: python 3.44 float addition bug? Maciej Dziardziel <fiedzia@gmail.com> - 2014-06-25 14:12 -0700
Re: python 3.44 float addition bug? Steven D'Aprano <steve@pearwood.info> - 2014-06-26 02:56 +0000
Re: python 3.44 float addition bug? Chris Angelico <rosuav@gmail.com> - 2014-06-26 13:13 +1000
Re: python 3.44 float addition bug? Steven D'Aprano <steve@pearwood.info> - 2014-06-26 04:17 +0000
Re: python 3.44 float addition bug? Chris Angelico <rosuav@gmail.com> - 2014-06-26 14:41 +1000
Re: python 3.44 float addition bug? Ben Finney <ben@benfinney.id.au> - 2014-06-26 13:39 +1000
Re: python 3.44 float addition bug? Steven D'Aprano <steve@pearwood.info> - 2014-06-26 09:15 +0000
Re: python 3.44 float addition bug? Chris Angelico <rosuav@gmail.com> - 2014-06-26 19:38 +1000
Re: python 3.44 float addition bug? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-27 02:51 +0000
Re: python 3.44 float addition bug? Chris Angelico <rosuav@gmail.com> - 2014-06-27 13:24 +1000
Re: python 3.44 float addition bug? Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-27 10:18 -0600
Re: python 3.44 float addition bug? Stefan Behnel <stefan_ml@behnel.de> - 2014-06-26 07:53 +0200
csiph-web