[Gnucash-changes] r14319 - gnucash/trunk - Bug#343795: Treat all
numbers in a auto-decimal-point-safe way.
Joshua Sled
jsled at cvs.gnucash.org
Sun Jun 4 11:01:34 EDT 2006
Author: jsled
Date: 2006-06-04 11:01:33 -0400 (Sun, 04 Jun 2006)
New Revision: 14319
Trac: http://svn.gnucash.org/trac/changeset/14319
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome/druid-loan.c
Log:
Bug#343795: Treat all numbers in a auto-decimal-point-safe way.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-06-04 12:23:58 UTC (rev 14318)
+++ gnucash/trunk/ChangeLog 2006-06-04 15:01:33 UTC (rev 14319)
@@ -1,3 +1,9 @@
+2006-06-04 Joshua Sled <jsled at asynchronous.org>
+
+ * src/gnome/druid-loan.c (ld_get_pmt_formula)
+ (ld_get_ppmt_formula, ld_get_ipmt_formula): Treat all numbers in a
+ auto-decimal-point-safe way. Bug#343795.
+
2006-06-04 Andreas Köhler <andi5.py at gmx.net>
* src/gnome-utils/gnc-html.[ch]:
Modified: gnucash/trunk/src/gnome/druid-loan.c
===================================================================
--- gnucash/trunk/src/gnome/druid-loan.c 2006-06-04 12:23:58 UTC (rev 14318)
+++ gnucash/trunk/src/gnome/druid-loan.c 2006-06-04 15:01:33 UTC (rev 14319)
@@ -934,10 +934,10 @@
{
g_assert( ldd != NULL );
g_assert( gstr != NULL );
- g_string_append_printf( gstr, "pmt( %.5f / 12 : %d : %0.2f : 0 : 0 )",
+ g_string_append_printf( gstr, "pmt( %.5f / 12 : %0.2f : %0.2f : 0 : 0 )",
(ldd->ld.interestRate / 100),
( ldd->ld.numPer
- * ( ldd->ld.perSize == MONTHS ? 1 : 12 ) ),
+ * ( ldd->ld.perSize == MONTHS ? 1 : 12 ) ) * 1.,
gnc_numeric_to_double(ldd->ld.principal) );
}
@@ -947,10 +947,10 @@
{
g_assert( ldd != NULL );
g_assert( gstr != NULL );
- g_string_printf( gstr, "ppmt( %.5f / 12 : i : %d : %0.2f : 0 : 0 )",
+ g_string_printf( gstr, "ppmt( %.5f / 12 : i : %0.2f : %0.2f : 0 : 0 )",
(ldd->ld.interestRate / 100),
( ldd->ld.numPer
- * ( ldd->ld.perSize == MONTHS ? 1 : 12 ) ),
+ * ( ldd->ld.perSize == MONTHS ? 1 : 12 ) ) * 1.,
gnc_numeric_to_double(ldd->ld.principal));
}
@@ -960,10 +960,10 @@
{
g_assert( ldd != NULL );
g_assert( gstr != NULL );
- g_string_printf( gstr, "ipmt( %.5f / 12 : i : %d : %0.2f : 0 : 0 )",
+ g_string_printf( gstr, "ipmt( %.5f / 12 : i : %0.2f : %0.2f : 0 : 0 )",
(ldd->ld.interestRate / 100),
( ldd->ld.numPer
- * ( ldd->ld.perSize == MONTHS ? 1 : 12 ) ),
+ * ( ldd->ld.perSize == MONTHS ? 1 : 12 ) ) * 1.,
gnc_numeric_to_double( ldd->ld.principal ) );
}
More information about the gnucash-changes
mailing list