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

Function Rescale

cpp/src/arrow/util/decimal.h:126–130  ·  view source on GitHub ↗

\brief Convert Decimal32 from one scale to another

Source from the content-addressed store, hash-verified

124
125 /// \brief Convert Decimal32 from one scale to another
126 Result<Decimal32> Rescale(int32_t original_scale, int32_t new_scale) const {
127 Decimal32 out;
128 ARROW_RETURN_NOT_OK(BasicDecimal32::Rescale(original_scale, new_scale, &out));
129 return out;
130 }
131
132 /// \brief Convert to a signed integer
133 template <typename T, typename = internal::EnableIfIsOneOf<T, int32_t, int64_t>>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected