文字

log10

(PHP 4, PHP 5)

log10以 10 为底的对数

说明

float log10 ( float $arg )

返回参数 arg 以 10 为底的对数。

参数

arg

要处理的参数

返回值

arg 以 10 为底的对数。

参见

  • log() - 自然对数

用户评论:

[#1] jphansen at uga dot edu [2011-06-22 06:31:29]

Alternatively log(x, 10) may be used.

[#2] smalladi at lexgen dot com [2001-11-20 15:47:24]

Note that log of a negative or undefined number returns -Infinity.

上一篇: 下一篇: