Definition at line 50 of file decimal.h.
OSB_LIB::Decimal::Decimal | ( | int | v | ) | [inline] |
OSB_LIB::Decimal::Decimal | ( | long | v | ) | [inline] |
OSB_LIB::Decimal::Decimal | ( | double | v | ) | [inline] |
long OSB_LIB::Decimal::ceil | ( | ) | const |
Return the ceiling of decimal (e.g. 3 from 2.89).
double OSB_LIB::Decimal::frac | ( | ) | const |
Return the fractional part of decimal (e.g. 0.89 from 2.89).
Decimal & OSB_LIB::Decimal::operator- | ( | ) | [inline] |
static long OSB_LIB::Decimal::power | ( | ) | [inline, static] |
static int OSB_LIB::Decimal::precision | ( | int | p = -1 |
) | [static] |
std::string OSB_LIB::Decimal::str | ( | ) | const |
Return the decimal as a string.
double OSB_LIB::Decimal::toDouble | ( | ) | const |
Decimal may be trancated for value above 100 million.
long OSB_LIB::Decimal::trunc | ( | ) | const |
Return the truncated value of decimal (e.g. 2 from 2.89).
long OSB_LIB::Decimal::power_ [static, private] |
int OSB_LIB::Decimal::precision_ [static, private] |
long long OSB_LIB::Decimal::value_ [private] |
Definition at line 114 of file decimal.h.
Referenced by Decimal(), OSB_LIB::operator!=(), operator-(), OSB_LIB::operator<(), OSB_LIB::operator<=(), operator=(), OSB_LIB::operator==(), OSB_LIB::operator>(), and OSB_LIB::operator>=().
const long long OSB_LIB::Decimal::valueMax = 0x7fffffffffffffffLL [static] |
const long long OSB_LIB::Decimal::valueMin = ~valueMax [static] |