title: Why does node not evaluate Math.tan(Math.PI/2) to Infinity but Chrome V8 does?
body: <p>When running this in a node command-line interface: </p>
  
  <pre><code>&gt; Math.tan(Math.PI/2)
  16331778728383844 
  </code></pre>
  
  <p>But in Chrome: </p>
  
  <pre><code>&gt; Math.tan(Math.PI/2)
  Infinity
  </code></pre>
  
  <p>Aren't both using the same V8 engine?</p>
  
  <p>Node's result is not even equal to the <a href="https://stackoverflow.com/questions/307179/what-is-javascripts-max-int-whats-the-highest-integer-value-a-number-can-go-t">maximum "integer" value in JavaScript</a>.</p>