Over a million developers have joined DZone.

Find Log Base 10 Using Javascript

·
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:

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

{{ parent.tldr }}

{{ parent.urlSource.name }}