23#include <OnixS/SURF/MarketData/Export.h>
28namespace OnixS {
namespace SURF {
namespace MarketData {
53 Decimal(
signed char sign,
unsigned long long mantissaHigh,
unsigned long long mantissaLow,
signed int exponent);
56 Decimal(
const char* buffer,
size_t bufferSize);
70 bool toNumber(
unsigned short& converted)
const;
75 bool toNumber(
signed long long& converted)
const;
76 bool toNumber(
unsigned long long& converted)
const;
81 operator signed int()
const;
82 operator unsigned int()
const;
83 operator signed long long()
const;
84 operator unsigned long long()
const;
85 operator double()
const;
103 unsigned long long* mantissaHigh,
104 unsigned long long* mantissaLow,
109 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)