Although you can calculate arbitrary precision results with BigDecimal
, there is no need to calculate to 100000!
for the series expansion of e. Consider that the 20th term in the series (20/20!
) has a magnitude of about 10-19, so its contribution to the overall total is insignificant.
In other words, the contribution of any terms after the 20th would change only digits after the 19th decimal place.