Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74208 > unrolled thread
| Started by | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| First post | 2014-07-08 13:50 -0600 |
| Last post | 2014-07-09 01:00 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: NaN comparisons - Call For Anecdotes Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-08 13:50 -0600
Re: NaN comparisons - Call For Anecdotes Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-09 01:00 +0000
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2014-07-08 13:50 -0600 |
| Subject | Re: NaN comparisons - Call For Anecdotes |
| Message-ID | <mailman.11659.1404849056.18130.python-list@python.org> |
On Tue, Jul 8, 2014 at 1:16 PM, Ethan Furman <ethan@stoneleaf.us> wrote: > What you said is: "They just don't appear in normal computation, because the > > interpreter raises an exception instead." > > I just ran a calculation that created a NaN, the same as 4 - 3 creates a 1, > and no exception was raised. > > Do you have an example where one is? The math module functions raise exceptions instead of returning NaN.
[toc] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2014-07-09 01:00 +0000 |
| Message-ID | <53bc9418$0$29995$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #74208 |
On Tue, 08 Jul 2014 13:50:06 -0600, Ian Kelly wrote: > The math module functions raise exceptions instead of returning NaN. That's not the only way that NANs can be constructed. In particular, the OP is collecting NANs from some other device. I don't know how it ends up with NANs, but it does, so he has to deal with them. -- Steven
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web