I think There is something wrong in Matlab relative to the number of decimal places used to display the number e. If put
>> sprintf( %.30f ,exp(1))
ans =
2.718281828459045500000000000000
enter code here
I think this is wrong because The number and contains an infinite number of decimal places instead of just the 16 that matlab show in this example. Does anyone know how I can get better accuracy using Matlab? Thank you.