title: What is inf and nan?
body: <p>Just a question that I'm kind of confused about</p>
  
  <p>So I was messing around with <code>float('inf')</code> and kind of wondering what it is used for.</p>
  
  <p>Also I noticed that if I add <code>-inf + inf</code> i get <code>nan</code> is that the same as Zero or not.</p>
  
  <p>I'm confused about what the uses of these two values are.</p>
  
  <p>Also when I do <code>nan - inf</code> I don't get <code>-inf</code> I get <code>nan</code> I'm sure it's all pretty simple but I stumbled upon them and didn't know what they do.</p>