Why does JavaScript Math.log(1.001) return the wrong value? -
javascript returns .0009995003330834232.
every other way of calculating returns 0.000434077479319.
it returns natural logarithm, i.e. logarithm base e = 2.71828...
, instead of logarithm base 10.
log_e(1.001) = 0.00099950033308342321 log_10(1.001) = 0.0004340774793185929
Comments
Post a Comment