Decimal logarithm in Java

int number = 1000;
double result = Math.log10(number);
//result is 3.0