Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #87470
| From | random832@fastmail.us |
|---|---|
| References | <me1k2i$ljt$1@ger.gmane.org> <20150314220907.GA67310@cskk.homeip.net> |
| Subject | Re: Odd ValueError using float |
| Date | 2015-03-15 07:41 -0400 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.389.1426419698.21433.python-list@python.org> (permalink) |
On Sat, Mar 14, 2015, at 18:09, Cameron Simpson wrote: > >So there's still something amiss. > > Am I missing something obvious here? int() likes only ints, not floats: What you're missing is that when directly examined in pdb, the value appeared to be '4', but then when passed to the int constructor, it appeared to be '41.700000000000003'. Something seriously messed-up is going on.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Odd ValueError using float random832@fastmail.us - 2015-03-15 07:41 -0400
csiph-web