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:
Christian Stimming
2001-12-11 09:16:14 +00:00
parent c8e93d5e4f
commit be0d9b8eae
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -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.
+4 -1
View File
@@ -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);
}
}