gnc-numeric overflow and bugs 603426, 612467, 587875

finance finance.perroud at free.fr
Wed Jan 11 11:52:55 EST 2012


I have came across the same problem, I  have found a workaround. The rounding
strategy is the cause. gnc-numeric numbers become bigger and bigger
(denominator AND numerator). So, at the end, you get an overflow. There are
options described in gnc-numeric.h and gnc-numeric.scm. it seems that
GNC-DENOM-AUTO is setted to 0, and does nothing about denominators. if you
use GNC-DENOM-REDUCE, then numerator and denominator are reduced as much as
possible without losing accuracy (ex:  #<<gnc-numeric> num: 100000000 denom:
100000000>) becomes #<<gnc-numeric> num: 1 denom: 1>)
So, after 2 days of scheme with parenthesis fight, I just add, after
(gnc:module-load "gnucash/report/report-system" 0):
(define GNC-DENOM-AUTO GNC-DENOM-REDUCE). and it works !


--
View this message in context: http://gnucash.1415818.n4.nabble.com/gnc-numeric-overflow-and-bugs-603426-612467-587875-tp3216356p4286072.html
Sent from the GnuCash - User mailing list archive at Nabble.com.


More information about the gnucash-user mailing list