BT编程语言文档
sqrt
返回一个数的平方根语法 math.sqrt(number: Int|Float)
number:必填,接受一个非负数字,可以是整型或浮点类型
// 返回:2 math.sqrt(4) // 返回:3 math.sqrt(9) // 返回:5 math.sqrt(25)bt复制代码
// 返回:2
- math.
sqrt
(
4
)
// 返回:3
- math.
sqrt
(
9
)
// 返回:5
- math.
sqrt
(
25
)
语法 math.sqrt(number: Int|Float)
number:必填,接受一个非负数字,可以是整型或浮点类型
// 返回:2 math.sqrt(4) // 返回:3 math.sqrt(9) // 返回:5 math.sqrt(25)bt复制代码
// 返回:2
- math.
sqrt
(
4
)
// 返回:3
- math.
sqrt
(
9
)
// 返回:5
- math.
sqrt
(
25
)