Menu Riverview Church

LOG

Natural logarithm

SYNTAX

log ( float $arg [, float $base = M_E ] ) : float

PARAMETERS

arg

The value to calculate the logarithm for

base

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

RETURN

The logarithm of arg to base, if given, or the natural logarithm.

EXAMPLES

ARG

2.5128460184772

BASE

3.6252704893747

PHP