Table of Contents

Log(number)

Category: Number function


Description

This function returns the natural logarithm of number.


Arguments

ArgumentTypeDescription
numberNumber (positive, non-0 value)The value for which the natural logarithm is returned.


Return value type: Number


Examples

log(1) //Returns 0
log(2) //Returns 0.693147180559945
log(0) //Returns "#Can't convert infinity to a decimal number"  (Argument needs to be a positive, non-0 value.)


See also