★ wanayoo — archive 1999 http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/ENouvelle recherche | Portail wanayoo

Mozilla.com

E

Summary

Euler's constant and the base of natural logarithms, approximately 2.718.

Property of Math

Static, Read-only

Implemented in: JavaScript 1.0, NES 2.0
ECMA Version: ECMA-262

Description

Because E is a static property of Math, you always use it as Math.E, rather than as a property of a Math object you created.

Examples

Example: Using Math.E

The following function returns Euler's constant:

function getEuler() {
   return Math.E
}

Page last modified 15:01, 6 Sep 2007 by Mgjbot

Tags:

Files (0)