AfDal Decimal: Definition, support and function for decimal values inside the Af-Arch


Enumerations

enum  AfDalDecimalSeparator { AFDAL_DECIMAL_DOT_AS_DECIMAL_SEPARATOR, AFDAL_DECIMAL_COMMA_AS_DECIMAL_SEPARATOR, AFDAL_DECIMAL_NUM_OF_SEPARATORS }
 Current AfDalDecimal representation. More...

Functions

gboolean afdal_decimal_are_equal (AfDalDecimal *a, AfDalDecimal *b)
 Returns the if the given AfDalDecimal values are equal.
gboolean afdal_decimal_check (gchar *value)
 Allows to check if the given string represents a local format value.
AfDalDecimalafdal_decimal_copy (AfDalDecimal *decimal)
 Allows to make a copy for the given AfDalDecimal value.
void afdal_decimal_free (AfDalDecimal *decimal)
 Destroy the given AfDalDecimal value.
AfDalDecimalSeparator afdal_decimal_get_actual_decimal_separator ()
 Allows to get current decimal representation.
gdouble afdal_decimal_get_double (AfDalDecimal *decimal, gboolean *success)
 Get current double representation for the given AfDalDecimal value.
gint afdal_decimal_get_precision (AfDalDecimal *decimal)
 Returns current precision for the given AfDalDecimal.
gboolean afdal_decimal_is_negative (AfDalDecimal *decimal)
 Check if the current representation is a negavtive value.
gboolean afdal_decimal_is_positive (AfDalDecimal *decimal)
 Check if the current representation is a positive value.
AfDalDecimalafdal_decimal_make_negative (AfDalDecimal *decimal)
 Allows to transform a positive value into a negative value.
AfDalDecimalafdal_decimal_make_positive (AfDalDecimal *decimal)
 Allows to transform a negative value into a positive value.
AfDalDecimalafdal_decimal_new (gchar *value)
 Creates a new AfDalDecimal object.
gchar * afdal_decimal_normalize (AfDalDecimal *decimal)
 Normalize the given AfDalDecimal objet.
void afdal_decimal_set_decimal_separator (AfDalDecimalSeparator separator)
 Allows to set current decimal representation.
gchar * afdal_decimal_stringfy (AfDalDecimal *decimal)
 Allows to get local representation for the given AfDalDecimal.