LN
Tom Azernour avatar
Written by Tom Azernour
Updated over a week ago

Type: Function

Function: LN

Syntax: LN(number)

Description: Returns the logarithm of a number using base e (Euler's number).

Sample usage:

  • LN(2) returns ~0.693.

  • lines_changed > 0 ? LN(lines_changed) : 0 returns the natural logarithm applied to the number of lines of code changed. Note that LN(0) raises an error, hence the guard against zero values.

Did this answer your question?