title: Extending Number.prototype in javascript and the Math object?
body: <p>I've always wondered why Javascript has the global Math object instead of giving numbers their own methods. Is there a good reason for it?</p>
  
  <p>Also are there any drawbacks (other than efficiency) to doing something like this?:</p>
  
  <pre><code>Number.prototype.round = function(){
      return Math.round(this);
  };
  </code></pre>
  
  <p>Just to make clear, I understand that constants like π need somewhere and functions that are applied on more than one number like min/max. The question was mainly concerning methods which only effect a single number such as round, abs, sin, pow, etc.</p>