e Calculator

Raise e to a power, or show the digits of e.

A whole number from 1 to 1000.

Try

Result

You enterede to 20 decimal placese \text{ to } 20 \text{ decimal places}

2.71828182845904523536\displaystyle 2.71828182845904523536

Computed with BigInt arithmetic from the series, using 25 guard digits, then rounded.

Decimal places

20\displaystyle 20
Show the work
  1. The series for e

    The number ee is the sum of 1/k!1/k! over all whole numbers kk from 0. The terms shrink very quickly, so a few hundred of them give a thousand digits.

    Using e=∑k=0∞1k!=1+1+12+16+124+⋯e = \sum_{k=0}^{\infty} \frac{1}{k!} = 1 + 1 + \frac{1}{2} + \frac{1}{6} + \frac{1}{24} + \cdots

    e=1+1+12+16+124+1120+⋯e = 1 + 1 + \frac{1}{2} + \frac{1}{6} + \frac{1}{24} + \frac{1}{120} + \cdots
  2. Exact integer arithmetic with guard digits

    Each term is worked out with whole-number (BigInt) arithmetic on 104510^{45}, which is 25 more digits than you asked for. Those extra guard digits absorb the rounding of every small division, so the digits shown are right. 39 terms were added.

    ⌊1045k!⌋k=0,1,…,38\begin{gathered} \left\lfloor \frac{10^{45}}{k!} \right\rfloor \\ k = 0, 1, \ldots, 38 \end{gathered}
  3. Round to the places asked for

    The guard digits are dropped and the result is rounded to 2020 decimal places.

    e≈2.71828182845904523536e \approx 2.71828182845904523536

Worked examples