~gabriel1984sibiu/octave/octave

« back to all changes in this revision

Viewing changes to libinterp/corefcn/pr-output.cc

  • Committer: Grevutiu Gabriel
  • Date: 2014-03-07 19:51:57 UTC
  • Revision ID: gabriel1984sibiu@gmail.com-20140307195157-xh7nlheg70c5r879
New upstream version (3.8.1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3979
3979
@deftypefnx {Built-in Function} {@var{old_val} =} fixed_point_format (@var{new_val})\n\
3980
3980
@deftypefnx {Built-in Function} {} fixed_point_format (@var{new_val}, \"local\")\n\
3981
3981
Query or set the internal variable that controls whether Octave will\n\
3982
 
use a scaled format to print matrix values such that the largest\n\
3983
 
element may be written with a single leading digit with the scaling\n\
3984
 
factor is printed on the first line of output.  For example:\n\
 
3982
use a scaled format to print matrix values.\n\
 
3983
\n\
 
3984
The scaled format prints a scaling factor on the first line of output chosen\n\
 
3985
such that the largest matrix element can be written with a single leading\n\
 
3986
digit.  For example:\n\
3985
3987
\n\
3986
3988
@example\n\
3987
3989
@group\n\
3988
 
octave:1> logspace (1, 7, 5)'\n\
 
3990
logspace (1, 7, 5)'\n\
3989
3991
ans =\n\
3990
3992
\n\
3991
3993
  1.0e+07  *\n\
3999
4001
@end example\n\
4000
4002
\n\
4001
4003
@noindent\n\
4002
 
Notice that first value appears to be zero when it is actually 1.  For\n\
4003
 
this reason, you should be careful when setting\n\
4004
 
@code{fixed_point_format} to a nonzero value.\n\
 
4004
Notice that the first value appears to be 0 when it is actually 1.  Because\n\
 
4005
of the possibilty for confusion you should be careful about enabling\n\
 
4006
@code{fixed_point_format}.\n\
4005
4007
\n\
4006
4008
When called from inside a function with the @qcode{\"local\"} option, the\n\
4007
4009
variable is changed locally for the function and any subroutines it calls.  \n\