User Tools

Site Tools


uphp:functions:ln

ln

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Return the natural logarithm of a number

Description

float ln ( number $number )

Parameter

$number: A number

Return Values

Float: Natural logarithm of the number

Examples

<?
  $val=ln(1);
  print($val); // outputs 0
?>

Note

The natural logarithm of a number is its logarithm to the base of the mathematical constant e, where e is an irrational and transcendental number approximately equal to 2.718281828459.

See Also

log10() - Return the base 10 logarithm of a number

power() - Return base raised to the power of exp

uphp/functions/ln.txt · Last modified: 2021/09/13 05:57 (external edit)