Math.log

Math.log

Math.log

Function

Specifies the base logarithm. Returns the logarithm of value in base.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueNumberisNonea true number.
baseNumberYesNoneThe base.

Return value

TypeDescription
Int/FloatReturns the base logarithm of value. An Int is returned for integer results, and a Float for non-integer or non-finite results.

Example

Notes

  • An error will be reported if base is missing.