MATLAB: How to multiply 2 variables without losing precision

high precisionMATLABsimple math

a= 378979003;
b= 1.443e-5;
The result of a*b is 5468.7 but I'm very interested in higher precision (such as 5468.6670). How to achieve those precision?

Best Answer

You can check that a*b and 5468.7 are not equal
a*b==5468.7
Now try this
format long
c=a*b