Returns the base-2 logarithm of a numeric value expression.
| Category: | Mathematical |
| Returned data type: | DOUBLE |
specifies any valid SQL expression that evaluates to a numeric value.
| Data type | DOUBLE |
| See | <sql-expression> |
| FedSQL Expressions |
|
Statements
|
Results
|
|---|---|
select log2(8.0); |
3 |
select log2(4); |
2 |