Provide the base 10 logarithm for various numbers.
System. |
The function log10() calculates the logarithm of a number with base 10.
public static double log10(double number) |
Parameter |
Description |
number |
The “Required” parameter indicates the value for which the logarithm is to be calculated. If this value is negative, the function returns NaN (Not a Number). If the value is 0, it returns -Infinity. |
Returns |
It returns a double value representing the logarithm of the number with base 10. |
Java Version |
1.5+ |