目录

Math.expm1(x)

相当于Math.exp(x) - 1。

语法 (Syntax)

Math.expm1( x );   

参数 (Parameter)

  • x - 代表一个数字

返回值 (Return Value)

返回Math.exp(x) - 1的值

例子 (Example)

console.log("---Math.expm1()---") 
console.log("Math.expm1(1) : "+Math.expm1(1)) 
console.log("Math.expm1(5.5) : "+Math.expm1(5.5))          

输出 (Output)

---Math.expm1()--- 
Math.expm1(1) : 1.718281828459045 
Math.expm1(5.5) : 243.69193226422038            
↑回到顶部↑
WIKI教程 @2018