Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
Math.exp() は静的メソッドで、 e のある数値のべき乗を返します。
𝙼𝚊𝚝𝚑.𝚎𝚡𝚙(𝚡)=ex\mathtt{\operatorname{Math.exp}(x)} = \mathrm{e}^x数値です。
ex を表す非負の数で、 e は自然対数の底です。
exp() は Math の静的メソッドであるため、生成した Math オブジェクトのメソッドとしてではなく、常に Math.exp() として使用するようにしてください (Math はコンストラクターではありません)。
e のべき乗が 0 に非常に近い値の場合、 1 に非常に近くなり、精度が失われることに注意してください。この場合、代わりに Math.expm1 を使用すると、より高精度な小数部分を求めることができます。
| ECMAScript® 2027 Language Specification # sec-math.exp |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年10月2日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.