Movatterモバイル変換


[0]ホーム

URL:


PHP 8.5.0 Alpha 2 available for testing
    log10 »
    « is_nan

    log

    (PHP 4, PHP 5, PHP 7, PHP 8)

    logNatural logarithm

    Description

    log(float$num,float$base =M_E):float

    If the optionalbase parameter is specified,log() returns logbasenum, otherwiselog() returns the natural logarithm ofnum.

    Parameters

    num

    The value to calculate the logarithm for

    base

    The optional logarithmic base to use (defaults to 'e' and so to the natural logarithm).

    Return Values

    The logarithm ofnum tobase, if given, or the natural logarithm.

    See Also

    • log10() - Base-10 logarithm
    • exp() - Calculates the exponent of e
    • pow() - Exponential expression
    • error_log() - Send an error message to the defined error handling routines

    Found A Problem?

    Learn How To Improve This PageSubmit a Pull RequestReport a Bug
    add a note

    User Contributed Notes

    There are no user contributed notes for this page.
    To Top
    and to navigate •Enter to select •Esc to close
    PressEnter without selection to search using Google

    [8]ページ先頭

    ©2009-2025 Movatter.jp