Returns the natural logarithm of a number.
Den här funktionen fungerar likadant i Google Kalkylark som i Excel — samma syntax och argument.
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)Resultat: 0
The natural logarithm of 1 is 0.
=LN(EXP(3))Resultat: 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.