Returns the natural logarithm of a number.
Esta função funciona no Google Sheets da mesma forma que no Excel — mesma sintaxe e argumentos.
LN(number)The LN function calculates the logarithm of a number to the base e (the constant 2.71828182845904). It is the inverse function of the EXP function.
=LN(1)Resultado: 0
The natural logarithm of 1 is 0.
=LN(EXP(3))Resultado: 3
Since LN is the inverse of EXP, the result is the original exponent.
The function will return a #NUM! error because the natural logarithm is undefined for non-positive numbers.