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 執行時間,而確切的結果或有效輸入範圍可能會不同作業系統或架構之間的差異。

適用於