MCPcopy Create free account
hub / github.com/apache/arrow / ToString

Method ToString

cpp/src/arrow/util/decimal.cc:739–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737}
738
739std::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
749std::string Decimal64::ToString(int32_t scale) const {
750 if (ARROW_PREDICT_FALSE(scale < -kMaxScale || scale > kMaxScale)) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected