GArrowDecimal128 is a 128-bit decimal class.
GArrowDecimal256 is a 256-bit decimal class.
GArrowDecimal128 * garrow_decimal128_new_string (const gchar *data,GError **error);
Since: 0.10.0
GArrowDecimal128 *
garrow_decimal128_new_integer (const gint64 data);
Since: 0.10.0
GArrowDecimal128 *
garrow_decimal128_copy (GArrowDecimal128 *decimal);
Since: 3.0.0
gboolean garrow_decimal128_equal (GArrowDecimal128 *decimal,GArrowDecimal128 *other_decimal);
Since: 0.12.0
gboolean garrow_decimal128_not_equal (GArrowDecimal128 *decimal,GArrowDecimal128 *other_decimal);
Since: 0.12.0
gboolean garrow_decimal128_less_than (GArrowDecimal128 *decimal,GArrowDecimal128 *other_decimal);
Since: 0.12.0
gboolean garrow_decimal128_less_than_or_equal (GArrowDecimal128 *decimal,GArrowDecimal128 *other_decimal);
TRUE if the decimal is less than the other decimal
or equal to the other decimal, FALSE otherwise.
Since: 0.12.0
gboolean garrow_decimal128_greater_than (GArrowDecimal128 *decimal,GArrowDecimal128 *other_decimal);
Since: 0.12.0
gboolean garrow_decimal128_greater_than_or_equal (GArrowDecimal128 *decimal,GArrowDecimal128 *other_decimal);
TRUE if the decimal is greater than the other decimal
or equal to the other decimal, FALSE otherwise.
Since: 0.12.0
gchar * garrow_decimal128_to_string_scale (GArrowDecimal128 *decimal,gint32 scale);
The string representation of the decimal.
It should be freed with g_free() when no longer needed.
Since: 0.10.0
gchar *
garrow_decimal128_to_string (GArrowDecimal128 *decimal);
The string representation of the decimal.
It should be freed with g_free() when no longer needed.
Since: 0.10.0
GBytes *
garrow_decimal128_to_bytes (GArrowDecimal128 *decimal);
Since: 3.0.0
void
garrow_decimal128_abs (GArrowDecimal128 *decimal);
Computes the absolute value of the decimal
destructively.
Since: 0.10.0
void
garrow_decimal128_negate (GArrowDecimal128 *decimal);
Negate the current value of the decimal
destructively.
Since: 0.10.0
gint64
garrow_decimal128_to_integer (GArrowDecimal128 *decimal);
Since: 0.10.0
GArrowDecimal128 * garrow_decimal128_plus (GArrowDecimal128 *left,GArrowDecimal128 *right);
Since: 0.11.0
GArrowDecimal128 * garrow_decimal128_minus (GArrowDecimal128 *left,GArrowDecimal128 *right);
Since: 0.11.0
GArrowDecimal128 * garrow_decimal128_multiply (GArrowDecimal128 *left,GArrowDecimal128 *right);
Since: 0.11.0
GArrowDecimal128 * garrow_decimal128_divide (GArrowDecimal128 *left,GArrowDecimal128 *right,GArrowDecimal128 **remainder,GError **error);
left |
||
right |
||
remainder |
A return location for the remainder
value of these decimals. The returned GArrowDecimal128 be
unreferred with |
[out][nullable] |
error |
[nullable] |
Since: 0.11.0
GArrowDecimal128 * garrow_decimal128_rescale (GArrowDecimal128 *decimal,gint32 original_scale,gint32 new_scale,GError **error);
decimal |
||
original_scale |
A scale to be converted from. |
|
new_scale |
A scale to be converted to. |
|
error |
[nullable] |
Since: 0.15.0
GArrowDecimal256 * garrow_decimal256_new_string (const gchar *data,GError **error);
Since: 3.0.0
GArrowDecimal256 *
garrow_decimal256_new_integer (const gint64 data);
Since: 3.0.0
GArrowDecimal256 *
garrow_decimal256_copy (GArrowDecimal256 *decimal);
Since: 3.0.0
gboolean garrow_decimal256_equal (GArrowDecimal256 *decimal,GArrowDecimal256 *other_decimal);
Since: 3.0.0
gboolean garrow_decimal256_not_equal (GArrowDecimal256 *decimal,GArrowDecimal256 *other_decimal);
Since: 3.0.0
gboolean garrow_decimal256_less_than (GArrowDecimal256 *decimal,GArrowDecimal256 *other_decimal);
Since: 3.0.0
gboolean garrow_decimal256_less_than_or_equal (GArrowDecimal256 *decimal,GArrowDecimal256 *other_decimal);
TRUE if the decimal is less than the other decimal
or equal to the other decimal, FALSE otherwise.
Since: 3.0.0
gboolean garrow_decimal256_greater_than (GArrowDecimal256 *decimal,GArrowDecimal256 *other_decimal);
Since: 3.0.0
gboolean garrow_decimal256_greater_than_or_equal (GArrowDecimal256 *decimal,GArrowDecimal256 *other_decimal);
TRUE if the decimal is greater than the other decimal
or equal to the other decimal, FALSE otherwise.
Since: 3.0.0
gchar * garrow_decimal256_to_string_scale (GArrowDecimal256 *decimal,gint32 scale);
The string representation of the decimal.
It should be freed with g_free() when no longer needed.
Since: 3.0.0
gchar *
garrow_decimal256_to_string (GArrowDecimal256 *decimal);
The string representation of the decimal.
It should be freed with g_free() when no longer needed.
Since: 3.0.0
GBytes *
garrow_decimal256_to_bytes (GArrowDecimal256 *decimal);
Since: 3.0.0
void
garrow_decimal256_abs (GArrowDecimal256 *decimal);
Computes the absolute value of the decimal
destructively.
Since: 3.0.0
void
garrow_decimal256_negate (GArrowDecimal256 *decimal);
Negate the current value of the decimal
destructively.
Since: 3.0.0
GArrowDecimal256 * garrow_decimal256_plus (GArrowDecimal256 *left,GArrowDecimal256 *right);
Since: 3.0.0
GArrowDecimal256 * garrow_decimal256_multiply (GArrowDecimal256 *left,GArrowDecimal256 *right);
Since: 3.0.0
GArrowDecimal256 * garrow_decimal256_divide (GArrowDecimal256 *left,GArrowDecimal256 *right,GArrowDecimal256 **remainder,GError **error);
left |
||
right |
||
remainder |
A return location for the remainder
value of these decimals. The returned GArrowDecimal256 be
unreferred with |
[out][nullable] |
error |
[nullable] |
Since: 3.0.0
GArrowDecimal256 * garrow_decimal256_rescale (GArrowDecimal256 *decimal,gint32 original_scale,gint32 new_scale,GError **error);
decimal |
||
original_scale |
A scale to be converted from. |
|
new_scale |
A scale to be converted to. |
|
error |
[nullable] |
Since: 3.0.0
“decimal128” property“decimal128” gpointer
The raw std::shared<arrow::Decimal128> *.
Owner: GArrowDecimal128
Flags: Write / Construct Only
“decimal256” property“decimal256” gpointer
The raw std::shared<arrow::Decimal256> *.
Owner: GArrowDecimal256
Flags: Write / Construct Only