GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
pr_engineering_float< T > Class Template Reference

#include "pr-flt-fmt.h"

Collaboration diagram for pr_engineering_float< T >:

Public Member Functions

 pr_engineering_float (const float_format &ff, T val)
 
 pr_engineering_float (const float_display_format &fdf, T val)
 
int exponent (void) const
 
mantissa (void) const
 

Public Attributes

const float_format m_ff
 
m_val
 

Detailed Description

template<typename T>
class pr_engineering_float< T >

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

Constructor & Destructor Documentation

◆ pr_engineering_float() [1/2]

template<typename T >
pr_engineering_float< T >::pr_engineering_float ( const float_format ff,
val 
)
inline

Definition at line 522 of file pr-output.h.

◆ pr_engineering_float() [2/2]

template<typename T >
pr_engineering_float< T >::pr_engineering_float ( const float_display_format fdf,
val 
)
inline

Definition at line 525 of file pr-output.h.

Member Function Documentation

◆ exponent()

template<typename T >
int pr_engineering_float< T >::exponent ( void  ) const

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

References engineering_exponent(), and pr_rational_float< T >::m_val.

◆ mantissa()

template<typename T >
T pr_engineering_float< T >::mantissa ( void  ) const

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

References pr_rational_float< T >::m_val, and pow().

Member Data Documentation

◆ m_ff

template<typename T >
const float_format pr_engineering_float< T >::m_ff

Definition at line 514 of file pr-output.h.

◆ m_val

template<typename T >
T pr_engineering_float< T >::m_val

Definition at line 516 of file pr-output.h.


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