90 THROW_PARAM_ERROR(Std_Err_lBitSizeInvalid, Std_Err_strBitSizeInvalid,
" N must be positive or zero N", iN);
93 THROW_PARAM_ERROR(Std_Err_lBitSizeToLarge, Std_Err_strBitSizeToLarge,
"BitSize=M+N ", (iM+iN));
unsigned long m_lMaxReal
This is the maximum real value attainable by the fixed number.
double m_dblVal
Actual value in double variable.
long m_lAddTestMask
Mask that is used to make certain that the number cannot go above the maximum number of bits...
double m_dblConvertReal
The value to convert a fixed-point number to a floating-point number.
double m_dblConvertInt
The value to convert a floating-point number to a fixed-point number.
long m_lAddNegMask
Mask that is used to make certain that the number cannot go above the maximum number of bits...
long Convert(double dblVal)
Converts floating-point number to a fixed-point number.
long m_lAddPosMask
Mask that is used to make certain that the number cannot go above the maximum number of bits...
float m_fltVal
Actual value in float variable.
CStdFixed()
Default constructor.
virtual void Configure(int iM, int iN, int iMultM=-1, int iMultN=-1)
Configures the fixed-point representation values.
void Fixed(long lVal)
Sets the fixed-point representation of the number.
long m_lFixed
The fixed-point representation of the number.
Namespace for the standard utility objects.
~CStdFixed(void)
Destructor.
unsigned long m_lMaxInt
This is the maximum integer value attainable by the fixed number.