LOG() function
Returns natural logarithm of X. We cap add one more argument to specify Base.
X is the number and B is the base. The output is log value of X with base B.
Using ROUND() with LOG()
If Base is less than or equal to 1 then NULL is returned, similarly if X is less than or equal to 0 then NULL is returned.
![]()
This article is written by plus2net.com team.
https://www.plus2net.com
![]() ▼ More on Math functions in SQL |