title: Node.js Maximum Safe Floating-point Number
body: <p>In Node.js, is there a maximum safe floating-point number like <code>Number.MAX_SAFE_INTEGER</code>?</p>
  
  <p>I had a little experiment to find out the (approximate) number I can use for subtracting 0.13 from it:</p>
  
  <pre><code>console.log(Math.floor(Number.MAX_SAFE_INTEGER));  // 9007199254740991
  console.log(Math.floor(Number.MAX_SAFE_INTEGER)-0.13);  // 9007199254740991
  
  console.log(Math.floor(Number.MAX_SAFE_INTEGER/2));  // 4503599627370495
  console.log(Math.floor(Number.MAX_SAFE_INTEGER/2)-0.13);  // 4503599627370495
  
  console.log(Math.floor(Number.MAX_SAFE_INTEGER/4));  // 2251799813685247
  console.log(Math.floor(Number.MAX_SAFE_INTEGER/4)-0.13);  // 2251799813685246.8
  
  console.log(Math.floor(Number.MAX_SAFE_INTEGER/64));  // 140737488355327
  console.log(Math.floor(Number.MAX_SAFE_INTEGER/64)-0.13);  // 140737488355326.88
  
  console.log(Math.floor(Number.MAX_SAFE_INTEGER/128));  // 70368744177663
  console.log(Math.floor(Number.MAX_SAFE_INTEGER/128)-0.13);  // 70368744177662.87
  </code></pre>
  
  <p>My guess is that as the target precision increases, the maximum value decreases.</p>