LN
Returns the natural logarithm of a numeric argument.
Syntax​
LN ( float_expression )
Arguments​
float_expression
Is an expression of type float or of a type that can be implicitly converted to float. Values less than or equal to 0.0 are returned as NULL.
Return Type​
Returns values of type FLOAT64.
Examples​
Examples in this section use the example blockchain.
This example shows the results of using the LN
function.
SELECT LN(real) FROM example;
Response:
LN(real) [FLOAT64]
NULL
NULL
0
0.6931471805599453