User Tools

Site Tools


uphp:functions:ln

This is an old revision of the document!


ln

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

Return natural logarithm of a number

Description

float ln ( float $number )

Parameter

$number: A number

Return Value

Float: Natural logarithm of 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 base 10 logarithm of a number

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

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