double MathSqrt(double x)
The MathSqrt function returns the square root of x. If x is negative, MathSqrt returns an indefinite (same as a quiet NaN).
MathSqrt 関数は x の平方根を返します。x が負の場合は、MathSqrt は不確定を返します(Quiet NaN と同じ)。
Parameters:
パラメータ:
1 2 | <b>x</b> - Positive numeric value. 正の数値。 |
Sample:
サンプル:
1 2 3 4 5 6 7 | double question=45.35, answer; answer=MathSqrt(question); if(question<0) Print("Error: MathSqrt returns ",answer," answer"); else Print("The square root of ",question," is ", answer); //Output: The square root of 45.35 is 6.73 |