SQLite LN() Function
Definition and Usage
The LN() function returns the natural logarithm (base e) of a number. The number must be greater than 0, else NULL is returned.
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.
Tip: Also look at LOG(), EXP().
Syntax
LN(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 |