/** A very thin C++ wrapper around decNumber.h */ // Exported as U_I18N_API_CLASS for tests class U_I18N_API_CLASS DecNum : public UMemory {
public:
U_I18N_API DecNum(); // leaves object in valid but undefined state
// Copy-like constructor; use the default move operators.
DecNum(const DecNum& other, UErrorCode& status);
/** Sets the decNumber to the StringPiece. */ void setTo(StringPiece str, UErrorCode& status);
/** Sets the decNumber to the NUL-terminated char string. */ void setTo(constchar* str, UErrorCode& status);
/** Uses double_conversion to set this decNumber to the given double. */ void setTo(double d, UErrorCode& status);
/** Sets the decNumber to the BCD representation. */ void setTo(const uint8_t* bcd, int32_t length, int32_t scale, bool isNegative, UErrorCode& status);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.