44 MantissaType mantissa_;
102 <Mantissa, Exponent>& left,
105 <Mantissa, Exponent>& right)
124 <Mantissa, Exponent>& left,
127 <Mantissa, Exponent>& right)
146 <Mantissa, Exponent>& left,
149 <Mantissa, Exponent>& right)
168 <Mantissa, Exponent>& left,
171 <Mantissa, Exponent>& right)
190 <Mantissa, Exponent>& left,
193 <Mantissa, Exponent>& right)
212 <Mantissa, Exponent>& left,
215 <Mantissa, Exponent>& right)
266 : mantissa_(other.mantissa_)
267 , exponent_(other.exponent_)
281 <AMantissa, AExponent>& other)
306 mantissa_ = other.mantissa_;
307 exponent_ = other.exponent_;
323 <AMantissa, AExponent>& other)
326 exponent_ = other.exponent();
333ONIXS_CONFLATEDUDP_EXPORTED
401 <Mantissa, Exponent>& right)
403 return (left ==
Decimal(right));
417 <Mantissa, Exponent>& left,
420 return (
Decimal(left) == right);
435 <Mantissa, Exponent>& right)
437 return (left !=
Decimal(right));
451 <Mantissa, Exponent>& left,
454 return (
Decimal(left) != right);
458ONIXS_CONFLATEDUDP_EXPORTED
496 return (right < left);
506 return !(right < left);
516 return !(right > left);
531 <Mantissa, Exponent>& right)
533 return (left <
Decimal(right));
547 <Mantissa, Exponent>& left,
550 return (
Decimal(left) < right);
565 <Mantissa, Exponent>& right)
567 return (left >
Decimal(right));
581 <Mantissa, Exponent>& left,
584 return (
Decimal(left) > right);
589ONIXS_CONFLATEDUDP_EXPORTED
598ONIXS_CONFLATEDUDP_EXPORTED
645 <Mantissa, Exponent>& number)
#define ONIXS_CONFLATEDUDP_LTWT_CLASS
#define ONIXS_CONFLATEDUDP_NAMESPACE_END
#define ONIXS_CONFLATEDUDP_NAMESPACE_BEGIN
A real number with floating exponent.
DecimalExponent Exponent
Aliases exponent component type.
Mantissa mantissa() const
Returns mantissa of given decimal.
Decimal(Mantissa mantissa, Exponent exponent)
Explicitly initializes instance from its mantissa value.
Decimal(const FixedPointDecimal< AMantissa, AExponent > &other)
Decimal(const Decimal &other)
Initializes instance as copy of the other one.
Decimal()
Default (zero) initialization.
DecimalMantissa Mantissa
Aliases mantissa component type.
Exponent exponent() const
Returns exponent of given decimal.
IntegralConstant< Int8, -9 > Exponent
Mantissa mantissa() const
FixedPointDecimal(Mantissa mantissa)
Explicitly initializes instance from its mantissa value.
FixedPointDecimal()
Default (zero) initialization.
Exponent exponent() const
Returns exponent of given decimal.
Int32 DecimalExponent
Aliases exponent component type for the decimal type.
Int64 DecimalMantissa
Aliases mantissa component type for the decimal type.
ONIXS_CONFLATEDUDP_EXPORTED bool decimalLess(const Decimal &left, const Decimal &right)
Compares two decimals.
ONIXS_CONFLATEDUDP_EXPORTED bool fromStr(Decimal &, const Char *, size_t)
ONIXS_CONFLATEDUDP_EXPORTED bool decimalEqual(const Decimal &left, const Decimal &right)
Checks two decimals for equality.
ONIXS_CONFLATEDUDP_EXPORTED void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
ONIXS_CONFLATEDUDP_EXPORTED void decimalToStr(std::string &, Int64, Int32)
char Char
Character type alias.