title: What is the min and max value for a double field in MongoDB?
body: <p>I need to find out what is the min and max value for a double field in mongoDB, including the number of precision for it.</p>
  
  <p>I found this link: <a href="http://bsonspec.org/spec.html" rel="nofollow noreferrer">http://bsonspec.org/spec.html</a></p>
  
  <p>Because MongoDB uses BSon, I'm looking for the BSON information. There is says:</p>
  
  <p>double  8 bytes (64-bit IEEE 754-2008 binary floating point)</p>
  
  <p>But how do I calculate the min and max number based on that?</p>
  
  <p>I ended up at this link: <a href="https://en.wikipedia.org/wiki/Double-precision_floating-point_format" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Double-precision_floating-point_format</a></p>
  
  <p>But couldn't understand how to calculate the min and max values.</p>