SQLite LOG2() Function
Definition and Usage
The LOG2() function returns the base 2 logarithm of a number. The number must be greater than 0.
Note: Some SQLite builds do not include the math functions, because they need the compile option SQLITE_ENABLE_MATH_FUNCTIONS. They work in our editor.
Syntax
LOG2(number)
Parameter Values
| Parameter | Description |
|---|---|
| number | Required. A number greater than 0 |
Technical Details
| Return type: | Real |
|---|---|
| Works in: | SQLite 3.35.0 and later |