|
constexpr int64_t | Pow10 (int exp) |
| A fast, constexpr-friendly power of 10.
|
|
template<typename T , int OldPrec, typename OldRound > |
constexpr T | decimal_cast (Decimal< OldPrec, OldRound > arg) |
| Cast one Decimal to another Decimal type.
|
|
template<int Prec, typename RoundPolicy > |
std::string | ToString (Decimal< Prec, RoundPolicy > dec) |
| Converts Decimal to a string.
|
|
template<int Prec, typename RoundPolicy > |
std::string | ToString (const Decimal< Prec, RoundPolicy > &dec, const FormatOptions &format_options) |
| Converts Decimal to a string.
|
|
template<int Prec, typename RoundPolicy > |
std::string | ToStringTrailingZeros (Decimal< Prec, RoundPolicy > dec) |
| Converts Decimal to a string, writing exactly Prec decimal digits.
|
|
template<int NewPrec, int Prec, typename RoundPolicy > |
std::string | ToStringFixed (Decimal< Prec, RoundPolicy > dec) |
| Converts Decimal to a string with exactly NewPrec decimal digits.
|
|
template<typename CharT , typename Traits , int Prec, typename RoundPolicy > |
std::basic_istream< CharT, Traits > & | operator>> (std::basic_istream< CharT, Traits > &is, Decimal< Prec, RoundPolicy > &d) |
| Parses a Decimal from the istream
|
|
template<typename CharT , typename Traits , int Prec, typename RoundPolicy > |
std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > &os, const Decimal< Prec, RoundPolicy > &d) |
| Writes the Decimal to the ostream
|
|
template<int Prec, typename RoundPolicy > |
logging::LogHelper & | operator<< (logging::LogHelper &lh, const Decimal< Prec, RoundPolicy > &d) |
| Writes the Decimal to the logger.
|
|
template<int Prec, typename RoundPolicy , typename Value > |
std::enable_if_t< formats::common::kIsFormatValue< Value >, Decimal< Prec, RoundPolicy > > | Parse (const Value &value, formats::parse::To< Decimal< Prec, RoundPolicy > >) |
| Parses the Decimal from the string.
|
|
template<int Prec, typename RoundPolicy , typename TargetType > |
TargetType | Serialize (const Decimal< Prec, RoundPolicy > &object, formats::serialize::To< TargetType >) |
| Serializes the Decimal to string.
|
|
template<int Prec, typename RoundPolicy , typename StringBuilder > |
void | WriteToStream (const Decimal< Prec, RoundPolicy > &object, StringBuilder &sw) |
| Writes the Decimal to stream.
|
|
template<int Prec, typename RoundPolicy > |
void | PrintTo (const Decimal< Prec, RoundPolicy > &v, std::ostream *os) |
|