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

Function garrow_decimal128_to_integer

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

* garrow_decimal128_to_integer: * @decimal: A #GArrowDecimal128. * * Returns: The 64-bit integer representation of the decimal. * * Since: 0.10.0 */

Source from the content-addressed store, hash-verified

1443 * Since: 0.10.0
1444 */
1445gint64
1446garrow_decimal128_to_integer(GArrowDecimal128 *decimal)
1447{
1448 auto arrow_decimal = garrow_decimal128_get_raw(decimal);
1449 return static_cast<int64_t>(*arrow_decimal);
1450}
1451
1452/**
1453 * garrow_decimal128_plus:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected