title: Sigmoid with Large Number in JavaScript
body: <p>From what I understand you use a sigmoid function to reduce a number to the range of 0-1.</p>
  
  <p>Using the function found in this <a href="https://github.com/stevenmiller888/sigmoid/blob/master/lib/index.js" rel="nofollow noreferrer">library</a></p>
  
  <pre><code>function sigmoid(z) {
    return 1 / (1 + Math.exp(-z));
  }
  </code></pre>
  
  <p>This works for a numbers 1-36. Any number higher than this will just return 1.</p>
  
  <pre><code>sigmoid(36) -&gt; 0.9999999999999998
  sigmoid(37) -&gt; 1
  sigmoid(38) -&gt; 1
  sigmoid(9000) -&gt; 1
  </code></pre>
  
  <p>How do you increase the range so this function can handle a number larger than 36.</p>