r16380 - gnucash/trunk/src/gnome - Bug#170729: format a literal value to get the locale-specific decimal separator.
Josh Sled
jsled at cvs.gnucash.org
Thu Aug 2 21:30:47 EDT 2007
Author: jsled
Date: 2007-08-02 21:30:46 -0400 (Thu, 02 Aug 2007)
New Revision: 16380
Trac: http://svn.gnucash.org/trac/changeset/16380
Modified:
gnucash/trunk/src/gnome/druid-loan.c
Log:
Bug#170729: format a literal value to get the locale-specific decimal separator.
Modified: gnucash/trunk/src/gnome/druid-loan.c
===================================================================
--- gnucash/trunk/src/gnome/druid-loan.c 2007-08-03 01:26:36 UTC (rev 16379)
+++ gnucash/trunk/src/gnome/druid-loan.c 2007-08-03 01:30:46 UTC (rev 16380)
@@ -927,8 +927,9 @@
{
g_assert( ldd != NULL );
g_assert( gstr != NULL );
- g_string_append_printf( gstr, "pmt( %.5f / 12.0 : %0.2f : %0.2f : 0 : 0 )",
+ g_string_append_printf( gstr, "pmt( %.5f / %0.2f : %0.2f : %0.2f : 0 : 0 )",
(ldd->ld.interestRate / 100),
+ 12.0,
( ldd->ld.numPer
* ( ldd->ld.perSize == GNC_MONTHS ? 1 : 12 ) ) * 1.,
gnc_numeric_to_double(ldd->ld.principal) );
@@ -940,8 +941,9 @@
{
g_assert( ldd != NULL );
g_assert( gstr != NULL );
- g_string_printf( gstr, "ppmt( %.5f / 12.0 : i : %0.2f : %0.2f : 0 : 0 )",
+ g_string_printf( gstr, "ppmt( %.5f / %0.2f : i : %0.2f : %0.2f : 0 : 0 )",
(ldd->ld.interestRate / 100),
+ 12.0,
( ldd->ld.numPer
* ( ldd->ld.perSize == GNC_MONTHS ? 1 : 12 ) ) * 1.,
gnc_numeric_to_double(ldd->ld.principal));
@@ -953,8 +955,9 @@
{
g_assert( ldd != NULL );
g_assert( gstr != NULL );
- g_string_printf( gstr, "ipmt( %.5f / 12.0 : i : %0.2f : %0.2f : 0 : 0 )",
+ g_string_printf( gstr, "ipmt( %.5f / %0.2f : i : %0.2f : %0.2f : 0 : 0 )",
(ldd->ld.interestRate / 100),
+ 12.0,
( ldd->ld.numPer
* ( ldd->ld.perSize == GNC_MONTHS ? 1 : 12 ) ) * 1.,
gnc_numeric_to_double( ldd->ld.principal ) );
More information about the gnucash-changes
mailing list