A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/320645.html below:

NaN Vs None

NaN Vs None NaN Vs NonePeck, Jon peck at spss.com
Fri Sep 23 11:16:01 EDT 2005
In choosing a way to represent a value of "no information" for a float, would it be better to use NaN or None?  None has the advantage of standard behavior across platforms, but NaN seems to propagate more easily - at least on Windows.

For example,

 

NaN+1 = NaN

but

None+1

raises an exception.

 

Thanks in advance for any advice.

 

 

Jon K Peck (Kim)

peck at spss.com <mailto:peck at spss.com> 

312-651-3435

233 S Wacker Dr

Chicago, IL 60606

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050923/22ec3e59/attachment.html>
More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4