log10()
returns the common logarithm (base 10) of a number.
Syntax: log10(expression)
Returns: A Float.
Arguments
Name | Description |
expression | A numeric expression. |
Example
RETURN log10(15)
The value returned will be the log of 15 to the base 10, which is 1.1760912590556813.
Considerations
log10(null)
returnsnull
.log10(0)
returns-Infinity
.log(<Any negative number>)
returnsNaN
(Not a Number).
Example
RETURN log10(1)
Returns the following Result
log10(1) |
0.0 |
Example
RETURN log10(10)
Returns the following Result
log10(10) |
1.0 |
Example
RETURN log10(100)
Returns the following Result
log10(100) |
2.0 |
Example
RETURN log10(50)
Returns the following Result
log10(50) |
1.6989700043360187 |
Example
RETURN log10(-1)
Returns the following Result
log10(-1) |
NaN |
Note– log10(<Any Negative Number>)
returns NaN
.
Example
RETURN log10(null)
Returns the following Result
log10(null) |
null |
Note– log10(null)
returns null
.
Example
RETURN log10(0)
Returns the following Result
log10(0) |
-Infinity |
Note– log10(0)
returns -Infinity
.