How can I make GnuCash to use fractions instead of decimals for dollar amounts?

In a Mutual Fund "Account Type", I enter an "Income Dividend" transaction of 0.482 shares with a value of \$403.72. GnuCash converts this to \$403.7137. Behind the scenes, it appears to be using 403 + 172/241, but this is less accurate than 403 + 72/100. How can I convince GnuCash to use 403.72 or 403 + 72/100? I'm using version 4.8.

• Thanks, but no. That dealt with the display of the value, not the inaccuracy of the fraction chosen by GnuCash. Jul 24 at 0:51
• This looks like standard mathematical roundoff error. Binary fractions do round off differently than decimals, and virtually nobody even considers trying to maintain decimal fractions in a program. Speaking as a programmer, I would say only GnuCash's authors can change this, and it would be a huge amount of effort to do so for something which is, arguably, not much more than cosmetic. Jul 24 at 1:16
• It's probably /256 or something like that, not /241.. As I said, binary math rather than decimal math. (There was a time when the big IBM machines could do math in Binary Counted Decimal, just to get roundoffs that looked more natural to humans. But that cost a significant amount of additional computing power and fell out of use .) Jul 24 at 5:36
• If I uncheck "Force Prices to display as decimals, it shows 403 + 172/241. If I use a simple 8-bit binary fraction, I can get 0.71875, which is closer than .7137. Can someone point me to a reference that explains how GnuCash is storing numbers internally? Jul 24 at 12:00