23#include <OnixS/SURF/MarketData/Export.h>
28namespace OnixS {
namespace SURF {
namespace MarketData {
55 unsigned long long mantissaHigh,
56 unsigned long long mantissaLow,
61 Decimal(
const char* buffer,
size_t bufferSize);
75 bool toNumber(
unsigned short& converted)
const;
80 bool toNumber(
signed long long& converted)
const;
81 bool toNumber(
unsigned long long& converted)
const;
86 operator signed int()
const;
87 operator unsigned int()
const;
88 operator signed long long()
const;
89 operator unsigned long long()
const;
90 operator double()
const;
108 unsigned long long* mantissaHigh,
109 unsigned long long* mantissaLow,
114 unsigned char bytes[16];
Decimal operator-(Decimal)
bool operator<(Decimal, Decimal)
Decimal operator*(Decimal, Decimal)
Decimal operator+(Decimal)
std::ostream & operator<<(std::ostream &, const Decimal &)
Decimal operator/(Decimal, Decimal)
bool operator>=(Decimal, Decimal)
bool operator<=(Decimal, Decimal)
bool operator>(Decimal, Decimal)
void mantissa(signed long long)
Decimal & operator=(const Decimal &other)
bool toNumber(signed int &converted) const
bool toNumber(unsigned short &converted) const
std::string toString() const
Decimal(signed char sign, unsigned long long mantissaHigh, unsigned long long mantissaLow, signed int exponent)
bool toNumber(signed long long &converted) const
bool toNumber(unsigned int &converted) const
Decimal & operator-=(const Decimal &other)
Decimal(const Decimal &other)
bool toNumber(signed short &converted) const
bool toNumber(double &converted) const
Decimal & operator*=(const Decimal &other)
Decimal(const char *buffer, size_t bufferSize)
bool operator==(const Decimal &other) const
Decimal & operator/=(const Decimal &other)
Decimal(signed long long mantissa, signed int exponent)
void exponent(signed int)
signed int exponent() const
Decimal(unsigned long long)
bool toNumber(unsigned long long &converted) const
Decimal(const std::string &)
bool toNumber(float &converted) const
Decimal & operator+=(const Decimal &other)
bool toNumber(unsigned char &converted) const
bool operator!=(const Decimal &other) const
bool toNumber(signed char &converted) const
Decimal(signed long long)
signed long long mantissa() const
Decimal(float value, size_t precision)