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

Type: Function

Function: LOG

Syntax: LOG(number, [base=10])

Description: Returns the logarithm of a number using a base (base 10 by default).

Sample usage:

  • LOG(100) returns the base 10 logarithm, which is 2.

  • LOG(100, 5) returns the base 5 logarithm, which is ~2.861.

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

Did this answer your question?