Increasing precision of Octave

52.6k Views Asked by At

I notice the values I get from octave are rounded to 5 decimal places. How can I increase that to 6 or 8 for example?

1

There are 1 best solutions below

1
On BEST ANSWER

As noted by William DeMeo in the comments, the command format is what you're looking for. In fact, format is common to both Matlab and Octave.

The command is

format options where options are: short for 3 significant figures, long for 15 significant figures, long e (or E) and short e (or E) for using scientific notation ...

More is in manual here link