JavaScript中的Math.cbrt()函数
cbrt()Math对象的函数接受一个数字并返回其立方根。
语法
其语法如下
Math.cbrt(729)
示例
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.cbrt(729));
document.write("<br>");
document.write("Cube root of the given number: "+result);
</script>
</body>
</html>输出结果
Cube root of the given number: 9
热门推荐
10 祝福语对联文案简短大气
11 海鲜送礼祝福语简短大全
12 毕业祝福语简短给同学
13 姥爷生日祝福语简短精辟
14 周末愉快祝福语高级简短
15 新婚祝福语简短十六字
16 步入高中祝福语简短励志
17 年底拜年祝福语大全简短
18 毕业祝福语保安文案简短