79 gnc_euro_rate_compare (
const void * key,
const void * value)
92 gnc_euro_rate_compare_code (
const void * key,
const void * value)
94 const char *code = key;
100 return g_ascii_strcasecmp (code, euro->currency);
111 if (currency == NULL)
117 result = bsearch(currency,
121 gnc_euro_rate_compare);
136 if (currency == NULL)
137 return gnc_numeric_zero ();
140 return gnc_numeric_zero ();
142 result = bsearch(currency,
146 gnc_euro_rate_compare);
149 return gnc_numeric_zero ();
170 if (currency == NULL)
171 return gnc_numeric_zero ();
174 return gnc_numeric_zero ();
176 result = bsearch(currency,
180 gnc_euro_rate_compare);
183 return gnc_numeric_zero ();
204 if (currency == NULL)
205 return gnc_numeric_zero ();
208 return gnc_numeric_zero ();
210 result = bsearch(currency,
214 gnc_euro_rate_compare);
217 return gnc_numeric_zero ();
232 return gnc_commodity_table_lookup (table, GNC_COMMODITY_NS_CURRENCY,
"EUR");
gnc_commodity_table * gnc_commodity_table_get_table(QofBook *book)
int gnc_commodity_get_fraction(const gnc_commodity *cm)
const char * gnc_commodity_get_mnemonic(const gnc_commodity *cm)
gnc_numeric double_to_gnc_numeric(double n, gint64 denom, gint how)
utility functions for the GnuCash UI
gnc_numeric gnc_numeric_mul(gnc_numeric a, gnc_numeric b, gint64 denom, gint how)
gnc_numeric gnc_numeric_div(gnc_numeric x, gnc_numeric y, gint64 denom, gint how)
#define GNC_HOW_DENOM_SIGFIGS(n)
gboolean gnc_commodity_is_iso(const gnc_commodity *cm)