If I execute the following code to get e, Euler's Number to 100 decimal places,
digits(100)one = vpa(1)
b = vpa(exp(one))
I get:
b = 2.718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427
However, if I execute:
a = exp(1)
I get:
a = 2.718281828459046
Note that this number is not a rounded or truncated version of Euler's constant e, and is not the best double precision value for e.
Best Answer