mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
2001-12-11 Christian Stimming <stimming@tuhh.de>
* src/app-utils/gnc-euro.c (gnc_convert_to_euro): Fixed rounding error. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6315 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2001-12-11 Christian Stimming <stimming@tuhh.de>
|
||||
|
||||
* src/app-utils/gnc-euro.c (gnc_convert_to_euro): Fixed rounding
|
||||
error.
|
||||
|
||||
* src/gnome-utils/druid-utils.[ch]: added
|
||||
gnc_druid_set_logo_image.
|
||||
|
||||
|
||||
@@ -173,7 +173,10 @@ gnc_convert_to_euro(const gnc_commodity * currency, gnc_numeric value)
|
||||
|
||||
rate = double_to_gnc_numeric (result->rate, 100000, GNC_RND_ROUND);
|
||||
|
||||
return gnc_numeric_div (value, rate, 100, GNC_RND_FLOOR);
|
||||
/* Which rounding should be used here? H. Thoma said
|
||||
GNC_RND_FLOOR, but I (cstim) think he's wrong -- the official
|
||||
rules say you *have* to use GNC_RND_ROUND! */
|
||||
return gnc_numeric_div (value, rate, 100, GNC_RND_ROUND);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user