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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -