JavaScript中的Math.expm1()函数
Math对象的此函数返回ex–1的值,其中x和e是自然算法的基数和指数。
语法
其语法如下
Math.expm1(6);
示例
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.expm1(6);
document.write("Result: "+result);
</script>
</body>
</html>输出结果
Result: 402.4287934927351