Constants in ECMAScript 262

name object value description
E Math e Roughly 2.7182818284590452354.
LN10 Math ln(10) The natural logarithm of 10, roughly 2.302585092994046
LN2 Math ln(2) The natural logarithm of 2, roughly 0.6931471805599453
LOG10E Math log10(e) The base-10 logarithm of e, roughly 1/Math.LN10 or 0.4342944819032518
LOG2E Math log2(e) The base-2 logarithm of e, roughly 1/Math.LN2 or 1.4426950408889634
MAX_VALUE Number 1.8e+308 The largest value able to be stored in the Number object, approximately 1.7976931348623157e+308
MIN_VALUE Number 5e-324 The smallest value able to be stored in the Number object.
NaN Number NaN Not a Number
NEGATIVE_INFINITY Number -∞ Negative Infinity
PI Math π Roughly 3.1415926535897932
POSITIVE_INFINITY Number +∞ Positive Infinity
SQRT1_2 Math √(0.5) The square root of 1/2, roughly 0.7071067811865476
SQRT2 Math √2 The square root of 2, roughly 1.4142135623730951