Change variable precision used

Hi
IDK how I made this to my MATLAB, but it has changed to using only 4 precision digits, how can I fix it to its default which I think might be 32?
for example I get the following answers for these codes:
>>round(pi,9)
ans =
3.1416
>>round(0.55555,3)
ans =
0.5560

 Respuesta aceptada

Walter Roberson
Walter Roberson el 30 de Nov. de 2019
format long
or
format long g
You can also control the default that you get on startup, by going into Preferences

Más respuestas (0)

Categorías

Más información sobre Function Creation en Centro de ayuda y File Exchange.

Preguntada:

el 30 de Nov. de 2019

Comentada:

el 1 de Dic. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by