JavaScript中的Math.sqrt()函数
sqrt()Math对象的函数接受一个数字,并返回给定数字的平方根值。
语法
其语法如下
Math.sqrt();
示例
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.sqrt(169);
document.write("Square root value of the given number: "+result);
</script>
</body>
</html>输出结果
Square root value of the given number: 13
热门推荐
3 带马的祝福语简短
10 小朋友上学祝福语简短
11 要庆祝生日祝福语简短
12 希望老人健康祝福语简短
13 乔迁送茶具简短祝福语
14 初三新年祝福语简短
15 岁月祝福语简短10字
16 岳母生日贺卡祝福语简短
17 冬至祝福语简短走心
18 生日毕业祝福语简短英文