Fred, I’m able to reproduce the problem thanks to a copy of your file you sent me a couple of years ago for diagnosing a (still open) bug. The problem is that you’ve managed to overflow GnuCash’s number system because the large amount of COP in the TheCut transaction and the high precision of the errant exchange rates. .000247466 is represented in GnuCash as 247466/10E10 and the COP value of TheCut is N*10E8/10E10. Reducing the COP exchange rate’s precision by just one digit, to .00024747, prevents the overflow. The overflow is causing a 0 to get passed as one of the currency values. You should have divide by 0 warnings in your trace file.
We have int128/int128 computation to avoid exactly that kind of overflow so somewhere that’s getting bypassed. I just need to figure out where. Regards, John Ralls > On Feb 8, 2026, at 09:32, John Ralls <[email protected]> wrote: > > Fred, > > No, you can’t do that. There’s no such thing as a hundred-millionth of a > Dollar, a Peso, or any other real currency. Currency smallest fractions are > set by law in the issuing country, that law is codified for us by the > ISO-4217 committee, and GnuCash hard-codes the ISO-4217 information. > > Regards, > John Ralls > >> On Feb 8, 2026, at 01:35, Fred Tydeman <[email protected]> wrote: >> >> Typo in email: Should be 1/100000000 >> But that field is grayed out. See bug 647340 >> <https://bugs.gnucash.org/show_bug.cgi?id=647340> >> >> On Sun, Feb 8, 2026 at 6:22 PM Liz <[email protected]> wrote: >> >>> On Sun, 8 Feb 2026 16:20:50 +1000 >>> Fred Tydeman <[email protected]> wrote: >>> >>>> Using the Security editor, I tried to change the fraction traded for >>>> COP from 1/100 to 1/00000000, >>>> but the editor will not allow me to do that. Is there a way for me to >>>> change that? >>> >>> Fred, I doubt it... >>> In the example above you are trying to divide by zero >>> >>> >>> Liz >>> >> _______________________________________________ >> gnucash-user mailing list >> [email protected] >> To update your subscription preferences or to unsubscribe: >> https://lists.gnucash.org/mailman/listinfo/gnucash-user >> ----- >> Please remember to CC this list on all your replies. >> You can do this by using Reply-To-List or Reply-All. > > _______________________________________________ > gnucash-user mailing list > [email protected] > To update your subscription preferences or to unsubscribe: > https://lists.gnucash.org/mailman/listinfo/gnucash-user > ----- > Please remember to CC this list on all your replies. > You can do this by using Reply-To-List or Reply-All. _______________________________________________ gnucash-user mailing list [email protected] To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.
