| 737 | } |
| 738 | |
| 739 | std::string Decimal32::ToString(int32_t scale) const { |
| 740 | if (ARROW_PREDICT_FALSE(scale < -kMaxScale || scale > kMaxScale)) { |
| 741 | return "<scale out of range, cannot format Decimal32 value>"; |
| 742 | } |
| 743 | |
| 744 | std::string str(ToIntegerString()); |
| 745 | AdjustIntegerStringWithScale(scale, &str); |
| 746 | return str; |
| 747 | } |
| 748 | |
| 749 | std::string Decimal64::ToString(int32_t scale) const { |
| 750 | if (ARROW_PREDICT_FALSE(scale < -kMaxScale || scale > kMaxScale)) { |
nothing calls this directly
no test coverage detected