ES6 - math exp() 函数
相当于 Math.pow(Math.E, x)。
语法
Math.exp ( x ) ;
参数
x − 代表一个数字
返回值
返回变量 x 的指数值。
示例
console.log("---Math.exp()---") console.log("Math.exp(1) : "+Math.exp(1)) console.log("Math.exp(5.5) : "+Math.exp(5.5))
输出
---Math.exp()--- Math.exp(1) : 2.718281828459045 Math.exp(5.5) : 244.69193226422036