GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
float_format Class Reference

#include "pr-flt-fmt.h"

Collaboration diagram for float_format:

Public Member Functions

 float_format (int w=0, int p=output_precision(), int f=0)
 
 float_format (int w, int e, int p, int f)
 
 float_format (const float_format &)=default
 
 ~float_format (void)=default
 
float_formatfixed (void)
 
float_formatgeneral (void)
 
float_formatlowercase (void)
 
float_formatoperator= (const float_format &)=default
 
float_formatprecision (int p)
 
float_formatscientific (void)
 
float_formattrailing_zeros (bool tz=true)
 
float_formatuppercase (void)
 
float_formatwidth (int w)
 

Public Attributes

int ex
 
int fmt
 
int fw
 
int prec
 
int sp
 
int up
 

Friends

template<typename T >
std::ostream & operator<< (std::ostream &os, const pr_engineering_float< T > &pef)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const pr_formatted_float< T > &pff)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const pr_rational_float< T > &prf)
 

Detailed Description

Definition at line 44 of file pr-flt-fmt.h.

Constructor & Destructor Documentation

◆ float_format() [1/3]

float_format::float_format ( int  w = 0,
int  p = output_precision (),
int  f = 0 
)
inline

Definition at line 49 of file pr-flt-fmt.h.

◆ float_format() [2/3]

float_format::float_format ( int  w,
int  e,
int  p,
int  f 
)
inline

Definition at line 52 of file pr-flt-fmt.h.

◆ float_format() [3/3]

float_format::float_format ( const float_format )
default

◆ ~float_format()

float_format::~float_format ( void  )
default

Member Function Documentation

◆ fixed()

float_format& float_format::fixed ( void  )
inline

Definition at line 67 of file pr-flt-fmt.h.

◆ general()

float_format& float_format::general ( void  )
inline

Definition at line 73 of file pr-flt-fmt.h.

◆ lowercase()

float_format& float_format::lowercase ( void  )
inline

Definition at line 85 of file pr-flt-fmt.h.

◆ operator=()

float_format& float_format::operator= ( const float_format )
default

◆ precision()

float_format& float_format::precision ( int  p)
inline

Definition at line 91 of file pr-flt-fmt.h.

References p.

◆ scientific()

float_format& float_format::scientific ( void  )
inline

Definition at line 61 of file pr-flt-fmt.h.

◆ trailing_zeros()

float_format& float_format::trailing_zeros ( bool  tz = true)
inline

Definition at line 103 of file pr-flt-fmt.h.

◆ uppercase()

float_format& float_format::uppercase ( void  )
inline

◆ width()

float_format& float_format::width ( int  w)
inline

Definition at line 97 of file pr-flt-fmt.h.

References Faddeeva::w().

Friends And Related Function Documentation

◆ operator<< [1/3]

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const pr_engineering_float< T > &  pef 
)
friend

Definition at line 185 of file pr-output.cc.

◆ operator<< [2/3]

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const pr_formatted_float< T > &  pff 
)
friend

Definition at line 218 of file pr-output.cc.

◆ operator<< [3/3]

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const pr_rational_float< T > &  prf 
)
friend

Definition at line 349 of file pr-output.cc.

Member Data Documentation

◆ ex

int float_format::ex

Definition at line 126 of file pr-flt-fmt.h.

Referenced by operator<<().

◆ fmt

int float_format::fmt

Definition at line 132 of file pr-flt-fmt.h.

Referenced by operator<<().

◆ fw

◆ prec

int float_format::prec

Definition at line 129 of file pr-flt-fmt.h.

Referenced by operator<<().

◆ sp

int float_format::sp

Definition at line 138 of file pr-flt-fmt.h.

Referenced by operator<<().

◆ up

int float_format::up

Definition at line 135 of file pr-flt-fmt.h.

Referenced by operator<<().


The documentation for this class was generated from the following file: