LOG10()

Overview

Returns the base-10 logarithm of the argument.

USAGE

LOG10(number)

Argument Name

Description

number

The number to transform

DETAILS

LOG10() is a mathematical function that returns the common logarithm (base-10) of the argument. This is equivalent to calling LOG(10, number).

LOG10() returns a value with a DOUBLE data type. If the argument value or the computed value exceeds DOUBLE precision, an error is returned.

A NULL is returned if the argument is NULL or less than or equal to zero.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT LOG10(2), LOG10(10);
+------------------+-----------+
| LOG10(2)         | LOG10(10) |
+------------------+-----------+
| 0.30102999566398 |         1 |
+------------------+-----------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES