Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #87389
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.035 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.01; 'string': 0.09; 'literal': 0.09; 'subject:using': 0.09; 'valueerror:': 0.09; 'cc:addr:python- list': 0.11; '(pdb)': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'repr.': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'string,': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'you?': 0.31; 'something': 0.35; 'received:google.com': 0.35; '14,': 0.36; 'even': 0.60; 'tell': 0.60; 'mar': 0.68; 'invalid': 0.68; '10:': 0.84; '2015': 0.84; 'to:none': 0.92; '***': 0.95 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=3VGepSVAafs6YcB0RLVvGOWEjCinTnrsROXbYRP3l+o=; b=vMgfCD0V8+PEBw+duh6dsjQuzSjzfLm3fo0CSWW1Y9u/M0wa5eLh7JnDnINa0XiXPW guwFIJcuocMJ2Ok2CLwKJOZOrpocsl8YcrM58l8Giqeyrq4cLevIpnO3BqhXd9pq1MiS rP0wDc5WyvzLFKDx2r+Nn+XdbhuIs11qagybTU3gq9GVJyIwAEdPyO04LFJNacDigyl+ IBbm5cqLNT12opxB80bjIeATnlav0EzZwF0ftwjcDqIYFKJ00b9jizLTwTRuK8luWB+E uJls5JFYU1is2Fqgw6MxpmqFVnvI8gzX/2qhivp/fVdieL7Tf1A3plFrskOCXg/ihAyo U5Yw== |
| MIME-Version | 1.0 |
| X-Received | by 10.107.16.31 with SMTP id y31mr22733846ioi.53.1426284842042; Fri, 13 Mar 2015 15:14:02 -0700 (PDT) |
| In-Reply-To | <mdvn81$3jp$1@ger.gmane.org> |
| References | <mdvn81$3jp$1@ger.gmane.org> |
| Date | Sat, 14 Mar 2015 09:14:01 +1100 |
| Subject | Re: Odd ValueError using float |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.19 |
| 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.338.1426284851.21433.python-list@python.org> (permalink) |
| Lines | 16 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1426284851 news.xs4all.nl 2900 [2001:888:2000:d::a6]:58610 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 3208 |
| X-Received-Body-CRC | 2770359973 |
| Xref | csiph.com comp.lang.python:87389 |
Show key headers only | View raw
On Sat, Mar 14, 2015 at 9:10 AM, emile <emile@fenx.com> wrote: > (Pdb) decval > '4' > (Pdb) len(decval) > 1 > (Pdb) int(decval) > *** ValueError: invalid literal for int() with base 10: '41.700000000000003' > (Pdb) > > > Any ideas? What's type(decval) tell you? I suspect you may have something other than a string, even though it looks like a string in its repr. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Odd ValueError using float Chris Angelico <rosuav@gmail.com> - 2015-03-14 09:14 +1100
csiph-web