gnucash maint: Multiple changes pushed

John Ralls jralls at code.gnucash.org
Sun Jun 8 15:45:37 EDT 2014


Updated	 via  https://github.com/Gnucash/gnucash/commit/8d723f1b (commit)
	 via  https://github.com/Gnucash/gnucash/commit/0fc71ed4 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/8c89c135 (commit)
	from  https://github.com/Gnucash/gnucash/commit/840feccb (commit)



commit 8d723f1b1e8cb21ec39e480a34ac69afd4d892cf
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Jun 8 13:46:56 2014 -0700

    double_to_gnc_numeric: Return overflow error immediately on invalid input.
    
    Which is either nan or outside the range that gnc_numeric supports.
    Also extend the powten array to support the full range of gnc_numeric.

commit 0fc71ed4c7ba068881518449331dd859bbd6482b
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Jun 8 13:43:10 2014 -0700

    Use more significant digits for SX function returns.
    
    gnc_sxed_check_consistent() was failing to balance mortgage payments with
    large payments or small interest amounts because of rounding errors with
    only 6 significant digits. Using 18 causes values < 1 to overflow, so I
    compromised on 12.
    
    Also log an error and return NULL if there's an overflow, since the value
    won't be useful.

commit 8c89c1357ed706f0ea4df055d9c311db7a77c78b
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Jun 8 13:29:56 2014 -0700

    725366 - Formula Parsing Error with Scheduled Mortgage Transactions
    
    Clamp per to nper so that the random value from gnc_sxed_check_consistent
    doesn't create overflows with ridiculous values.



Summary of changes:
 src/app-utils/gnc-exp-parser.c | 10 +++++++++-
 src/libqof/qof/gnc-numeric.c   |  9 +++++++--
 src/scm/fin.scm                | 18 +++++++-----------
 3 files changed, 23 insertions(+), 14 deletions(-)



More information about the gnucash-patches mailing list