r23720 - gnucash/trunk/src/libqof/qof - Replace pow(10, foo) with array dereference

John Ralls jralls at code.gnucash.org
Sun Jan 19 16:22:02 EST 2014


Author: jralls
Date: 2014-01-19 16:22:01 -0500 (Sun, 19 Jan 2014)
New Revision: 23720
Trac: http://svn.gnucash.org/trac/changeset/23720

Modified:
   gnucash/trunk/src/libqof/qof/gnc-numeric.c
Log:
Replace pow(10, foo) with array dereference

Aside from being much faster, Windows was occasionally returning
e.g. 99 instead of 100 for pow(10, 2).  This stops that and thus
fixes:
Bug 721447 - Entries with values of ,50 are imported as ,51
Bug 721825 - Online prices displayed as unreadable fractions in 2.6.0



More information about the gnucash-patches mailing list