Skip to main content

math.log

Returns the logarithm of x using the given base, or the mathematical constant e if no base is provided (natural logarithm).

math.log(x: number, base: number): number

Arguments

NameDescriptionType
xN/Anumber
baseBase (defaults to 2.7182818)number

Returns number