MathF.Log10(Single) 方法

定义

返回指定数字以 10 为底的对数。Returns the base 10 logarithm of a specified number.

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

要查找其对数的数字。A number whose logarithm is to be found.

返回

下表中的值之一。One of the values in the following table.

x 参数x parameter 返回值Return value
Positive x 的以 10 为底的对数,即 log 10xThe base 10 log of x; that is, log 10x.
Zero NegativeInfinity
负数Negative NaN
等于 NaNEqual to NaNNaN
等于 PositiveInfinityEqual to PositiveInfinityPositiveInfinity

注解

参数x被指定为以10为基数的数字。Parameter x is specified as a base 10 number.

适用于