Math.log10()

Math.log10() returns natural log value of input number with base 10.
Syntax
Math.log10(input_number)
Here are some examples with different type of numbers.
System.out.println(Math.log10(4));   //0.6020599913279624
System.out.println(Math.log10(1));   //0.0
System.out.println(Math.log10(0));   //-Infinity
System.out.println(Math.log10(4.12));//0.6148972160331346
Using negative input numbers
System.out.println(Math.log10(-4.12));  //NaN 
System.out.println(Math.log10(-1));     //NaN


All Math functions

Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    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-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer