roundoff problem

Mark Johnson mrj001 at shaw.ca
Mon Jan 2 20:57:43 EST 2006


Beth Leonard wrote:

>On Mon, Jan 02, 2006 at 04:00:54PM -0700, Mark Johnson wrote:
>  
>
>>I have an employee stock purchase plan where the share fraction is a 
>>millionth of a share.  However, the display of the shares account is 
>>displaying only 5 decimal places.  The commodity is set to the correct 
>>fraction.  The account is also set to the correct fraction.
>>
>>Ichecked the .xac file and the correct values are being stored for the 
>>purchase splits.  It is only that they are being displayed incorrectly.
>>
>>I am using 1.8.11.  Was this a bug that was fixed in 1.8.12?  Or a new 
>>one?  It would be nice to know before going to the trouble of upgrading.
>>    
>>
>
>I haven't checked for stock purchases, but there are some
>rounding abnormalities in some parts of gnucash:
>
>http://article.gmane.org/gmane.comp.gnome.apps.gnucash.user/10784/
>http://article.gmane.org/gmane.comp.gnome.apps.gnucash.user/13986/
>
>Would these explain what you are seeing?
>
>I do not believe these issues were changed between 1.8.11 and 1.8.12.
>
>--Beth 
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>+                             Beth Leonard                          +
>+       O say, does that star-spangled banner yet wave              +
>+       O'er the land of the free and the home of the brave?        +
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>  
>
I don't think that these are the same issue.  I have been entering the 
number of shares and the total paid, allowing gnucash to calculate the 
share price.  This much is fine.  I've looked into the data file, and it 
is storing the correct values for the number of shares.  I've concluded 
that this is a display problem and not a calculation problem.  I suspect 
that the register is not picking up on the account properties for the 
number decimal places of commodity units to use (for display).  Or else 
it is not using the commodity's property for that.

Thanks,
Mark


More information about the gnucash-user mailing list