After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 117773 - "price" truncation/rounding bug
"price" truncation/rounding bug
Status: VERIFIED DUPLICATE of bug 122878
Product: GnuCash
Classification: Other
Component: Register
1.8.x
Other Linux
: Normal normal
: ---
Assigned To: David Hampton
David Hampton
Depends on:
Blocks:
 
 
Reported: 2003-07-18 15:04 UTC by Jon Lapham
Modified: 2018-06-29 20:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jon Lapham 2003-07-18 15:04:51 UTC
Within a account of type "stock", if you enter a price with more than 2
decimal points, the price gets rounded.  This is not correct, because
sometimes you can actually purchace stocks with fractional cents.  Also, it
is theoretically possible that some currencies use thousanths (I'm guessing).

Note: this happens even if you set the stock commodity and account
fractions to 1/10000.

It is definately a combo rounding/trucation issue, if you enter 1.014 you
get 1.01, if you enter 1.015 you get 1.02.
Comment 1 Derek Atkins 2003-07-26 19:46:50 UTC
I'll note that you can just enter the #shares and "total buy/sell" and
it will autocompute the price for you...
Comment 2 Roberto Neri 2003-07-30 07:50:16 UTC
I'm afraid that it doesn't work (for me, at least): I've entered the no. of 
shares and total buy, but the price, which should have been 1.0484, has 
been set to 1 once again... 
 
I would also like to inform you that, when I import buy/sell transactions 
from a QIF file, the price is imported correctly (I've verified prices up to 6 
decimal digits), but when I reopen my accounts file after saving & exiting 
gnucash, the prices are all rounded.  
  
I'm using Gnucash 1.8.4 built from sources on Slackware Linux 9.0, with 
Gnome 1.4 components installed from the previous Slackware Linux 
release (8.1). 
 
Comment 3 Christian Stimming 2005-11-11 10:53:15 UTC

*** This bug has been marked as a duplicate of 122878 ***
Comment 4 John Ralls 2018-06-29 20:35:23 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=117773. Please update any external references or bookmarks.