5 #include <libutl/Number.h> 102 if (_n < 0) _n *= -1;
111 _n -= (_n % 1000000);
113 _n += (_n % 1000000);
144 res.multiply(rhs._n);
String toString(const FwdIt &begin, const FwdIt &end, const String &sep, bool key=false)
Obtain a string representation of a sequence (via Object::toString()).
void serialize(bool &b, Stream &stream, uint_t io, uint_t mode=ser_default)
Serialize a boolean.
void deInit()
De-initialize UTL++.
default representation (via getSerializeMode())
Fixed-point decimal number.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
long int64_t
Signed 64-bit integer.
Decimal & abs()
Take the absolute value.
Decimal(int64_t n)
Constructor.
void copy(T *dest, const T *src, size_t len)
Copy one array of objects to another.
unsigned int uint_t
Unsigned integer.
Decimal(const String &str)
Constructor.
Decimal & floor()
Remove any fractional component.
Root of UTL++ class hierarchy.
int compare(bool lhs, bool rhs)
Compare two boolean values.
void init()
Initialize UTL++.