44 template<
class MantissaType,
class ExponentType>
48 MantissaType mantissa_;
66 Size =
sizeof(Mantissa)
87 : mantissa_(other.mantissa_)
109 mantissa_ = other.mantissa_;
116 template<
class Mantissa,
class Exponent>
125 template <
class Mantissa,
class Exponent>
134 template<
class Mantissa,
class Exponent>
143 template<
class Mantissa,
class Exponent>
152 template<
class Mantissa,
class Exponent>
161 template<
class Mantissa,
class Exponent>
171 ONIXS_FENICSUST_BIMP_API
void decimalToStr(std::string&, Int64, Int32);
174 template <
class Mantissa,
class Exponent>
181 template<
class Mantissa,
class Exponent>
192 template<
class Mantissa,
class Exponent>
193 std::ostream& operator << (std::ostream& stream, const FixedPointDecimal<Mantissa, Exponent>& number)
195 return stream <<
toStr(number);
bool operator==(const PriceLevel &l, const PriceLevel &r) ONIXS_FENICSUST_BIMP_NOTHROW
compare
bool operator<=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
bool operator>=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
bool operator>(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
FixedPointDecimal() ONIXS_FENICSUST_BIMP_NOTHROW
Default (zero) initialization.
Mantissa mantissa() const ONIXS_FENICSUST_BIMP_NOTHROW
Returns mantissa of given decimal.
MantissaType Mantissa
Aliases mantissa component type.
FixedPointDecimal(const FixedPointDecimal &other) ONIXS_FENICSUST_BIMP_NOTHROW
Initializes instance as copy of the other one.
Exponent exponent() const ONIXS_FENICSUST_BIMP_NOTHROW
Returns exponent of given decimal.
ExponentType Exponent
Aliases exponent component type.
bool operator!=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
#define ONIXS_FENICSUST_BIMP_NOTHROW
ONIXS_FENICSUST_BIMP_API void toStr(std::string &, EventCode::Enum)
Appends string presentation of object.
FixedPointDecimal(Mantissa mantissa) ONIXS_FENICSUST_BIMP_NOTHROW
Explicitly initializes instance from its mantissa value.
bool operator<(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
ONIXS_FENICSUST_BIMP_API void decimalToStr(std::string &, Int64, Int32)