Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74210 > unrolled thread

Re: NaN comparisons - Call For Anecdotes

Started byEthan Furman <ethan@stoneleaf.us>
First post2014-07-08 13:03 -0700
Last post2014-07-08 13:03 -0700
Articles 1 — 1 participant

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.


Contents

  Re: NaN comparisons - Call For Anecdotes Ethan Furman <ethan@stoneleaf.us> - 2014-07-08 13:03 -0700

#74210 — Re: NaN comparisons - Call For Anecdotes

FromEthan Furman <ethan@stoneleaf.us>
Date2014-07-08 13:03 -0700
SubjectRe: NaN comparisons - Call For Anecdotes
Message-ID<mailman.11661.1404849817.18130.python-list@python.org>
On 07/08/2014 12:50 PM, Ian Kelly wrote:
> 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.

Ah, so if actual numbers go in, either actual numbers come out or an exception is raised -- good to know, and thanks for 
clarifying.

--
~Ethan~

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web