@nevware21/ts-utils
    Preparing search index...

    Function mathLog

    The mathLog() function returns the natural logarithm (base e) of a number.

    0.12.0

    A number

    The natural logarithm (base e) of x. If x is less than 0, NaN is returned.

    mathLog(1); // 0
    mathLog(Math.E); // 1
    mathLog(10); // 2.302585092994046
    mathLog(-1); // NaN
    • Returns the natural logarithm (base e) of a number.

      Parameters

      • x: number

        A numeric expression.

      Returns number