From bug-octave-request at bevo dot che dot wisc dot edu Wed Jan 6 11:12:21 1999 Subject: format short differs from startup format From: "John W. Eaton" To: Doug Warner Cc: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 6 Jan 1999 11:12:00 -0600 (CST) On 6-Jan-1999, Doug Warner wrote: | Bug report for Octave 2.0.13 configured for sparc-sun-solaris2.6 | | Description: | ----------- | | The command `format short' does not restore the default formatting | properties. No, but `format' without any arguments should: Octave, version 2.0.13 (i686-pc-linux-gnulibc1). Copyright (C) 1996, 1997, 1998 John W. Eaton. This is free software with ABSOLUTELY NO WARRANTY. For details, type `warranty'. octave:1> a = rand (3,3) a = 0.31754 0.86233 0.43182 0.27018 0.11553 0.57543 0.42244 0.47060 0.85985 octave:2> format long octave:3> a a = 0.317544043064117 0.862327396869659 0.431824028491974 0.270176619291306 0.115528717637062 0.575430035591125 0.422441929578781 0.470600187778473 0.859846949577332 octave:4> format octave:5> a a = 0.31754 0.86233 0.43182 0.27018 0.11553 0.57543 0.42244 0.47060 0.85985 I see that the manual says that `format short' is the default, but that's not correct. The default is to set output_precision to 5 and output_max_field_width to 10. The `format short' command sets them to 3 and 8. I think it would be best to simply correct the manual. Does anyone have any objection to that? Thanks, jwe