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

Function garrow_decimal_to_string_scale

c_glib/arrow-glib/decimal.cpp:201–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199
200template <typename Decimal>
201gchar *
202garrow_decimal_to_string_scale(typename DecimalConverter<Decimal>::GArrowType *decimal,
203 gint32 scale)
204{
205 DecimalConverter<Decimal> converter;
206 const auto arrow_decimal = converter.get_raw(decimal);
207 const auto string = arrow_decimal->ToString(scale);
208 return g_strdup(string.c_str());
209}
210
211template <typename Decimal>
212gchar *

Callers

nothing calls this directly

Calls 2

get_rawMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected