Топ-100
top of page
Волнистый абстрактный фон
CerebroSQL

LOG10

Database: MySQL

68747470733a2f2f7374796c65732e7265646469746d656469612e636f6d2f74355f32716d366b2f7374796c65

Topic

Syntax:
LOG10(X)

Returns the base-10 logarithm of X. If X is less than or equal to
0.0E0, the function returns NULL and a warning "Invalid argument for
logarithm" is reported.

Example

mysql> SELECT LOG10(2);
-> 0.30102999566398
mysql> SELECT LOG10(100);
-> 2
mysql> SELECT LOG10(-100);
-> NULL

bottom of page