MathF.Log10(Single) 方法

定义

返回指定数字以 10 为底的对数。

public:
 static float Log10(float x);
public static float Log10 (float x);
static member Log10 : single -> single
Public Shared Function Log10 (x As Single) As Single

参数

x
Single

要查找其对数的数字。

返回

下表中的值之一。

x 参数 返回值
x 的以 10 为底的对数,即 log 10x
NegativeInfinity
负数NaN
等于 NaNNaN
等于 PositiveInfinityPositiveInfinity

注解

参数 x 指定为基数 10。

此方法调用基础 C 运行时,不同的操作系统或体系结构之间的确切结果或有效输入范围可能会有所不同。

适用于