sqrt()sqrt()

返回平方根函数。Returns the square root function.

语法Syntax

sqrt(x)sqrt(x)

参数Arguments

  • x:大于或等于 0 的实数。x : A real number >= 0.

返回Returns

  • 正数值,例如 sqrt(x) * sqrt(x) == xA positive number such that sqrt(x) * sqrt(x) == x
  • 如果参数为负或不能转换为 real 值,则为 nullnull if the argument is negative or cannot be converted to a real value.