|
Zero
0.1.0
|
#include <decimal.h>
Public Member Functions | |
| decimal () | |
| decimal (double value) | |
| decimal (int value) | |
| decimal & | operator+= (decimal const &other) |
| decimal & | operator-= (decimal const &other) |
| decimal | operator*= (decimal const &other) |
| decimal | operator/= (decimal const &other) |
| decimal | operator+ (decimal const &other) const |
| decimal | operator- (decimal const &other) const |
| decimal | operator* (decimal const &other) const |
| decimal | operator/ (decimal const &other) const |
| decimal & | operator++ () |
| decimal | operator++ (int) |
| decimal & | operator-- () |
| decimal | operator-- (int) |
| double | to_double () const |
| long long | to_long () const |
| int | to_int () const |
| bool | operator< (decimal const &other) const |
| bool | operator> (decimal const &other) const |
| bool | operator== (decimal const &other) const |
| bool | operator<= (decimal const &other) const |
| bool | operator>= (decimal const &other) const |
| bool | operator!= (decimal const &other) const |
Private Member Functions | |
| decimal (int64_t value) | |
Private Attributes | |
| int64_t | _value |
A fixed-point decimal class. Able to represent up to 2^50 cents accurately, allowing numbers approaching 4 trillion or so.
|
inlineexplicitprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
1.8.12