Home » MySQL Math LN() Function

MySQL Math LN() Function

by Online Tutorials Library

MySQL LN() Function

The LN() is a Math function of MySQL. This function is used to get the natural logarithm of the given number.

Syntax

Prameter:

number : It is the number for getting log value.

Returns

This function returns the natural logarithm of the given number. If the number is less than or equal to 0, this function will return NULL.

Example 1

Output:

MySQL Math LN() Function

Example 2

Output:

MySQL Math LN() Function

Example 3

Output:

MySQL Math LN() Function

Next TopicMySQL Math

You may also like