title: What is the maximum value that can be stored as a Double without losing precision in Swift?
body: <p>According to Swift, the greatest finite magnitude that can be stored as a <code>Double</code> is much more than that of <code>Int</code>.</p>
  
  <pre><code>print(Double.greatestFiniteMagnitude) // 1.7976931348623157e+308
  </code></pre>
  
  <p>However, the accepted answer to <a href="https://stackoverflow.com/q/28525484/8330469">this</a> question says that you may lose precision while storing large values.</p>
  
  <p>So, what is the maximum value that can be saved as a Double without losing precision?</p>