![]() |
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 276 of file cfgas_decimal.cpp.
Referenced by CFGAS_Decimal(), and TEST().
|
explicit |
Definition at line 272 of file cfgas_decimal.cpp.
Referenced by TEST().
|
explicit |
Definition at line 290 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 302 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 328 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 443 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 455 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 438 of file cfgas_decimal.cpp.
References IsNotZero().
Referenced by CFGAS_Decimal().
void CFGAS_Decimal::SetScale | ( | uint8_t | newScale | ) |
Definition at line 400 of file cfgas_decimal.cpp.
References IsNotZero().
Referenced by CFGAS_StringFormatter::FormatNum(), and CXFA_Node::NumericLimit().
double CFGAS_Decimal::ToDouble | ( | ) | const |
Definition at line 393 of file cfgas_decimal.cpp.
Referenced by CFGAS_StringFormatter::FormatNum(), CFXJSE_FormCalcContext::Round(), TEST(), and ToFloat().
float CFGAS_Decimal::ToFloat | ( | ) | const |
Definition at line 389 of file cfgas_decimal.cpp.
References ToDouble().
Referenced by TEST().
WideString CFGAS_Decimal::ToWideString | ( | ) | const |
Definition at line 363 of file cfgas_decimal.cpp.
References IsNotZero(), and fxcrt::WideString::operator+=().
Referenced by CFGAS_StringFormatter::FormatNum(), CXFA_Node::NumericLimit(), CFGAS_StringFormatter::ParseNum(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().