Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfgas_decimal.h>
Public Member Functions | |
CFGAS_Decimal () | |
CFGAS_Decimal (uint32_t val) | |
CFGAS_Decimal (uint64_t val) | |
CFGAS_Decimal (int32_t val) | |
CFGAS_Decimal (float val, uint8_t scale) | |
CFGAS_Decimal (WideStringView str) | |
WideString | ToWideString () const |
float | ToFloat () const |
double | ToDouble () const |
CFGAS_Decimal | operator* (const CFGAS_Decimal &val) const |
CFGAS_Decimal | operator/ (const CFGAS_Decimal &val) const |
bool | IsNotZero () const |
uint8_t | GetScale () const |
void | SetScale (uint8_t newScale) |
void | SetNegate () |
Definition at line 12 of file cfgas_decimal.h.
|
default |
|
explicit |
Definition at line 243 of file cfgas_decimal.cpp.
Referenced by CFGAS_Decimal(), and TEST().
|
explicit |
Definition at line 239 of file cfgas_decimal.cpp.
Referenced by TEST().
|
explicit |
Definition at line 257 of file cfgas_decimal.cpp.
References CFGAS_Decimal(), and SetNegate().
Referenced by CFGAS_StringFormatter::FormatNum(), CFGAS_StringFormatter::ParseNum(), and TEST().
CFGAS_Decimal::CFGAS_Decimal | ( | float | val, |
uint8_t | scale ) |
Definition at line 269 of file cfgas_decimal.cpp.
References FXSYS_roundf(), and IsNotZero().
Referenced by CFGAS_StringFormatter::ParseNum(), CFXJSE_FormCalcContext::Round(), TEST(), and TEST().
|
explicit |
Definition at line 295 of file cfgas_decimal.cpp.
References FXSYS_IsDecimalDigit(), and IsNotZero().
|
inline |
Definition at line 29 of file cfgas_decimal.h.
Referenced by CFGAS_StringFormatter::FormatNum().
|
inline |
Definition at line 28 of file cfgas_decimal.h.
Referenced by CFGAS_Decimal(), CFGAS_Decimal(), CFGAS_StringFormatter::FormatNum(), operator/(), SetNegate(), SetScale(), and ToWideString().
CFGAS_Decimal CFGAS_Decimal::operator* | ( | const CFGAS_Decimal & | val | ) | const |
Definition at line 408 of file cfgas_decimal.cpp.
Referenced by CFGAS_StringFormatter::FormatNum(), and CFGAS_StringFormatter::ParseNum().
CFGAS_Decimal CFGAS_Decimal::operator/ | ( | const CFGAS_Decimal & | val | ) | const |
Definition at line 420 of file cfgas_decimal.cpp.
References CFGAS_Decimal(), and IsNotZero().
Referenced by CFGAS_StringFormatter::FormatNum(), and CFGAS_StringFormatter::ParseNum().
void CFGAS_Decimal::SetNegate | ( | ) |
Definition at line 403 of file cfgas_decimal.cpp.
References IsNotZero().
Referenced by CFGAS_Decimal().
void CFGAS_Decimal::SetScale | ( | uint8_t | newScale | ) |
Definition at line 365 of file cfgas_decimal.cpp.
References IsNotZero().
Referenced by CFGAS_StringFormatter::FormatNum(), and CXFA_Node::NumericLimit().
double CFGAS_Decimal::ToDouble | ( | ) | const |
Definition at line 358 of file cfgas_decimal.cpp.
Referenced by CFGAS_StringFormatter::FormatNum(), CFXJSE_FormCalcContext::Round(), TEST(), and ToFloat().
float CFGAS_Decimal::ToFloat | ( | ) | const |
Definition at line 354 of file cfgas_decimal.cpp.
References ToDouble().
Referenced by TEST().
WideString CFGAS_Decimal::ToWideString | ( | ) | const |
Definition at line 328 of file cfgas_decimal.cpp.
References IsNotZero(), fxcrt::WideString::operator+=(), and fxcrt::WideString::operator[]().
Referenced by CFGAS_StringFormatter::FormatNum(), CXFA_Node::NumericLimit(), CFGAS_StringFormatter::ParseNum(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().