43 template<
class MantissaType,
class ExponentType>
47 MantissaType mantissa_;
82 : mantissa_(other.mantissa_)
93 ONIXS_BATS_BOE_CONSTEXPR
102 mantissa_ = other.mantissa_;
109 template<
class Mantissa,
class Exponent>
116 template <
class Mantissa,
class Exponent>
123 template<
class Mantissa,
class Exponent>
130 template<
class Mantissa,
class Exponent>
137 template<
class Mantissa,
class Exponent>
144 template<
class Mantissa,
class Exponent>
155 template <
class Mantissa,
class Exponent>
156 inline void toStr(std::string& str,
const FixedPointDecimal <Mantissa, Exponent>& number)
162 template<
class Mantissa,
class Exponent>
173 template<
class Mantissa,
class Exponent>
176 return stream <<
toStr(number);
FixedPointDecimal & operator=(const FixedPointDecimal &other)
Re-initializes instance as copy of the other one.
ExponentType Exponent
Aliases exponent component type.
ONIXS_BATS_BOE_CONSTEXPR Exponent exponent() const
Returns exponent of given decimal.
Mantissa mantissa() const
FixedPointDecimal(Mantissa mantissa)
Explicitly initializes instance from its mantissa value.
FixedPointDecimal()
Default (zero) initialization.
MantissaType Mantissa
Aliases mantissa component type.
FixedPointDecimal(const FixedPointDecimal &other)
Initializes instance as copy of the other one.
bool operator>(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
ONIXS_CBOE_CFE_BOE_API void decimalToStr(std::string &, Int64, Int32)
bool operator!=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
std::ostream & operator<<(std::ostream &stream, const FixedPointDecimal< Mantissa, Exponent > &number)
bool operator<=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
void toStr(std::string &str, const FixedPointDecimal< Mantissa, Exponent > &number)
Serializes fixed-point decimal into a string.
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.