By default, MATLAB® uses 16 digits of precision. For higher precision, use the vpa function in Symbolic Math Toolbox™. vpa provides variable precision which can be increased without limit. When you choose variable-precision arithmetic, by default, vpa uses 32 significant decimal digits of precision.
How do you increase float precision in MATLAB?
Increase Precision of Results By default, MATLAB® uses 16 digits of precision. For higher precision, use vpa . The default precision for vpa is 32 digits. Increase precision beyond 32 digits by using digits .
How do you get 6 decimal places in MATLAB?
It is numeric! If you want to round a number to the sixth decimal place you could do round(x*10^6)/10^6 .