java.lang.Math.log10(double a)


java.lang.Math.log10(double a)

package com.codingdict;



import java.lang.*;



public class MathDemo {



   public static void main(String[] args) {



      // get two double numbers

      double x = 60984.1;

      double y = 1000;



      // get the base 10 logarithm for x

      System.out.println("Math.log10(" + x + ")=" + Math.log10(x));



      // get the base 10 logarithm for y

      System.out.println("Math.log10(" + y + ")=" + Math.log10(y));

   }

}