Math对象的此函数接受一个数字并返回Ex的值,其中x和E是参数和自然对数的Euler常数。
其语法如下
Math.exp(12)
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.exp(12);
document.write("Result: "+result);
</script>
</body>
</html>输出结果
Result: 162754.79141900392