Math. hypot() 函数
Math 对象的 hypot() 函数可以接受数字,然后返回给定数字的平方的和的平方根。
语法
其语法如下
Math.hypot(12, 58, 66);
示例
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.hypot(12, 58, 66);
document.write("hypot value: "+result);
</script>
</body>
</html>输出
hypot value: 88.67919710958147
广告
数据结构
网络
关系数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 语言
C++
C#
MongoDB
MySQL
Javascript
PHP