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 is2
.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 thatLOG(0)
raises an error, hence the guard against zero values.