log() JavaScript log function

By using log() math function we can get log value of any number . Syntax is here
Math.log(x) ;
examples.
<script language='JavaScript' type='text/JavaScript'>
<!--
document.write(Math.log(2)); // Output is 0.6931471805599453
document.write("<br>");
document.write(Math.log(21)); // output is 3.044522437723423
document.write("<br>");
document.write(Math.log(2.5)); // output is 0.9162907318741551
document.write("<br>");
document.write(Math.log(-1.355)); // output is NaN
document.write("<br>");

document.write(Math.log(43-64)); // output is NaN
document.write("<br>");

//-->
</script>
Your Rating





Post your comments , suggestion , error , requirements etc here .




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer