Compute Natural Logarithm in JavaScript

Posted by yhuang
Public (Editable by Users)
JavaScript
None
Edit
Math.log(-1); // NaN, out of range
Math.log(0);  // -Infinity
Math.log(1);  // 0
Math.log(10); // 2.302585092994046