Navigation

Operators and Keywords

Function List:

C++ API

: val = output_precision ()
: old_val = output_precision (new_val)
: output_precision (new_val, "local")

Query or set the internal variable that specifies the minimum number of significant figures to display for numeric output.

When called from inside a function with the "local" option, the variable is changed locally for the function and any subroutines it calls. The original variable value is restored when exiting the function.

See also: format, fixed_point_format, output_max_field_width.

Package: octave