ReferenceFunctionsMath Functions
LN
LN: Returns the natural logarithm of a positive number.
Summary
Returns the natural logarithm of a positive number.
Remarks
numbermust be greater than0; otherwise the function returns#NUM!.LN(EXP(x))returnsxup to floating-point precision.- Input errors are propagated.
Examples
Natural log of e cubed
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
3
Natural log of a fraction
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
-0.6931471805599453
Related functions
FAQ
Why does LN return #NUM! for 0 or negatives?
Natural logarithm is only defined for strictly positive inputs.
Runtime metadata
Category
Math
Signature
LN(arg1: Number)Arity
min 1, max 1
Arguments
arg1Number · Scalar · coercion NumberLenientText
Caps
PURE
Source