LOG2
Returns the base 2 logarithm of x.
Syntax
LOG2(input)
Arguments
| Name | Type | Mandatory |
|---|---|---|
| input | numeric | true |
Returns
Returns a double value.
Examples
| input | output |
|---|---|
| 2 | 1.0 |
| 16.0 | 4.0 |
| 0.5 | -1.0 |
| 15 | 3.9068905956085187 |
| 0 | '-Infinity' |
| -2 | nan() |