GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
pr-flt-fmt.cc File Reference
#include "defun.h"
#include "error.h"
#include "pr-flt-fmt.h"
#include "variables.h"
Include dependency graph for pr-flt-fmt.cc:

Go to the source code of this file.

Functions

OCTAVE_EXPORT octave_value_list Foutput_max_field_width (const octave_value_list &, int)
 
OCTAVE_EXPORT octave_value_list Foutput_precision (const octave_value_list &args, int nargout) the number of digits of precision displayed is limited to 16 for double precision values and 7 for single precision values. When called from inside a function with the code
 
int output_precision (void)
 
void set_output_prec (int prec)
 

Variables

 option
 
static int Voutput_precision = 5
 

Function Documentation

◆ Foutput_max_field_width()

OCTAVE_EXPORT octave_value_list Foutput_max_field_width ( const octave_value_list ,
int   
)

Definition at line 53 of file pr-flt-fmt.cc.

References octave_value().

◆ Foutput_precision()

OCTAVE_EXPORT octave_value_list Foutput_precision ( const octave_value_list args,
int  nargout 
)

Definition at line 75 of file pr-flt-fmt.cc.

◆ output_precision()

int output_precision ( void  )

◆ set_output_prec()

void set_output_prec ( int  prec)

Definition at line 43 of file pr-flt-fmt.cc.

References Voutput_precision.

Referenced by set_format_style().

Variable Documentation

◆ option

option

Definition at line 75 of file pr-flt-fmt.cc.

◆ Voutput_precision

int Voutput_precision = 5
static

Definition at line 34 of file pr-flt-fmt.cc.

Referenced by output_precision(), and set_output_prec().