|
|
@@ -270,7 +270,7 @@ bool math::operator>(bigdecimal const & rhs, bigdecimal const & lhs) {
|
|
|
bigdecimal const bigdecimal::ZERO{0}, bigdecimal::ONE{1},
|
|
|
bigdecimal::NEGATIVE_ONE{-1};
|
|
|
|
|
|
-std::string bigdecimal::to_string() const {
|
|
|
+std::string bigdecimal::to_string(number_format fmt) const {
|
|
|
size_t const decimal_split = size_t(std::max(0, steps_));
|
|
|
int32_t const hidden = std::max(0, SEG_DIGITS * (-scale() / SEG_DIGITS));
|
|
|
size_t const chars = SEG_DIGITS * data.size() + size_t(hidden);
|