title: Are the results of floating point calculations involving infinity and NaN specified in IEEE 754?
body: <p>For example using Visual Studio 2017 I got following results</p>
  
  <p>inf + inf evaluates to inf</p>
  
  <p>inf + (-inf) evaluates to -nan(ind)</p>
  
  <p>Are the results of floating point calculations involving infinity and NaN specified in IEEE 754 or are they compiler dependent?</p>