<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sat, Sep 29, 2018 at 2:32 AM Steve Barnes <<a href="mailto:gadgetsteve@live.co.uk">gadgetsteve@live.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">One of the strengths of the IEEE float, (to set against its many <br>
weaknesses), is the presence of the magic value NaN. Not a Number, or <br>
NaA, is especially useful in that it is a valid value in any <br>
mathematical operation, (always returning NaN), or comparison, (always <br>
returning False).</blockquote><div><br></div><div><div>>>> nan = float('nan')</div><div>>>> nan**0</div><div>1.0</div></div><div><br></div><div>... most operations. :-)</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature">Keeping medicines from the bloodstreams of the sick; food <br>from the bellies of the hungry; books from the hands of the <br>uneducated; technology from the underdeveloped; and putting <br>advocates of freedom in prisons.  Intellectual property is<br>to the 21st century what the slave trade was to the 16th.<br></div></div></div>