JavaScript 中的 Math.sqrt() 函数
Math 对象的 sqrt() 函数接收一个数字,并返回给定数字的平方根值。
语法
其语法如下
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
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP