sparrow 0.3.0
|
#include <decimal.hpp>
Public Types | |
using | integer_type = T |
Public Member Functions | |
decimal () | |
decimal () | |
decimal (T value, int scale) | |
bool | operator== (const decimal &other) const |
bool | operator!= (const decimal &other) const |
operator float () const | |
operator double () const | |
operator long double () const | |
operator std::string () const | |
const T & | storage () const |
int | scale () const |
Definition at line 18 of file decimal.hpp.
using sparrow::decimal< T >::integer_type = T |
Definition at line 22 of file decimal.hpp.
sparrow::decimal< T >::decimal | ( | ) |
Definition at line 62 of file decimal.hpp.
sparrow::decimal< T >::decimal | ( | ) |
sparrow::decimal< T >::decimal | ( | T | value, |
int | scale ) |
|
explicit |
|
explicit |
|
explicit |
|
explicitnodiscard |
bool sparrow::decimal< T >::operator!= | ( | const decimal< T > & | other | ) | const |
bool sparrow::decimal< T >::operator== | ( | const decimal< T > & | other | ) | const |
|
nodiscard |
|
nodiscard |
Definition at line 165 of file decimal.hpp.