JavaScript Math.exp()

Examples

let x = Math.exp(3);
Try it Yourself »
let a = Math.exp(1);
let b = Math.exp(-1);
let c = Math.exp(5);
let d = Math.exp(10);
Try it Yourself »

Description

The Math.exp() method returns the value of Ex, where E is Euler's number (approximately 2.7183) and x is the number passed to it.




Syntax

Math.exp(x)

Parameters

Parameter Description
x Required.
A number.

Return Value

Type Description
NumberEx


Browser Support

Math.exp() is an ECMAScript1 (ES1) feature.

ES1 (JavaScript 1997) is fully supported in all browsers:

Chrome Edge Firefox Safari Opera IE
Yes Yes Yes Yes Yes Yes

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.