MATLAB: Format values to show 8 digits after the decimal point

format

I need to show this value " a= 1.71469619135257e-006 " and all the values of the variables in the program remains as 8 digits after the decimal point. How can I do it? I used
format long g
but still same value " a= 1.71469619135257e-006 "

Best Answer

There is no "format" that does that. You will need to use fprintf or sprintf