(Bitcoin)trading strategy

John Ralls jralls at ceridwen.us
Mon Dec 23 19:32:57 EST 2013


On Dec 23, 2013, at 3:48 PM, David Carlson <david.carlson.417 at gmail.com> wrote:

> On 12/23/2013 2:24 PM, Derek Atkins wrote:
>> "Dustin Henning" <The00Dustin at gmx.net> writes:
>> 
>>> Bitcoin does not work well in GnuCash because it has 8 decimal places.
>>> GnuCash seems to only properly support 6 even when you manually edit the ML
>>> file to support 8. I tried to keep track of Bitcoin this way a couple years
>>> ago and it was a nightmare.  I finally deleted all of that from my GnuCash
>>> file and just tracked it separately without financial software.
>> I recommend people track MiliBitcoins (mBTC, e.g. 1/1000 BTC).
>> 
>>> Please remember to CC this list on all your replies.
>>> You can do this by using Reply-To-List or Reply-All.
>> -derek
> 
> How hard would it be to change the GnuCash code so that 8 decimal place
> granularity could be supported?

Too hard for 2.6. I want to replace our current 64-bit gnc-numeric class
with an infinite-precision one (Boost rational [0] plus multiprecision [1]) 
early in the next dev cycle. That will put an end to all of the <redacted> 
overflow issues and allow as many decimal places as anyone wants.

Regards,
John Ralls

[0] http://www.boost.org/doc/libs/release/libs/rational/
[1] http://www.boost.org/doc/libs/release/libs/multiprecision/


More information about the gnucash-user mailing list