Description
The LOG10( ) function returns the base10 logarithm of X.
This function has the form:
SELECT LOG10(x)
Parameter | Description |
---|---|
x | A number |
Return Value
The base10 logarithm of X
Examples
The following example shows the basic use of this function:
mysql> SELECT LOG10(2);
-> 0.30102999566398
mysql> SELECT LOG10(100);
-> 2
mysql> SELECT LOG10(-100);
-> NULL