AUDIT: r17421 - gnucash/trunk/lib/libqof/qof - Add a new function to the gnc_numeric library that converts denominators to exact powers of ten.

Andreas Köhler andi5.py at gmx.net
Thu Sep 18 21:48:27 EDT 2008


Hi Chris,

On Thu, 2008-09-18 at 11:58 -0400, Chris Shoemaker wrote:
> > >> On Tue, Sep 16, 2008 at 9:38 AM, Andreas Köhler <andi5.py at gmx.net> wrote:
> > >>> I just noticed that ignoring negative denominators means that 1/(-10) is
> > >>> now printed as "1 * 10", where it was printed as "10.00" before.  Is
> > >>> that a regression we have to fix or not?
>
> I haven't followed the thread at all, but just in case anyone's not
> aware, I thought I should remind everybody about the reciprocal
> denominator represention.  IIRC, signs are always stored on the
> numerator, and a negative denominator represents a reciprocal
> denominator (essentially a multiplication).  Last I knew, this
> representation is used internally by some of the operations.

indeed, that is what we detected as well.  Nice to read from you again,
though, please repeat that :-D

Ciao,
-- andi5

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20080919/1da53f4d/attachment.bin 


More information about the gnucash-devel mailing list