Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Find Log Base 10 Using Javascript

DZone's Guide to

Find Log Base 10 Using Javascript

·
Free Resource
We can't calculate the Log for 10 in js.


function calculate() {
	var log1 = document.getElementById('log').value;
	var base1 =10;
	var dn=1;
	dn=Math.log(base1);
	var ans=Math.log(log1)/dn;
	alert(ans);
}


This is the tool which calculate the log for any base from this tool. Log calculator

For online Currency Conversion
Currency Conversion
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}