MathF.Sqrt(Single) 方法

定義

傳回指定數字的平方根。

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

參數

x
Single

要找出其平方根的數字。

傳回

下表的其中一個值。

x 參數 傳回值
零或正數 x 的正平方根。
NaN
等於 NaNNaN
等於 PositiveInfinityPositiveInfinity

適用於

另請參閱