Author

Topic: Bitcoin division limit (Read 4551 times)

donator
Activity: 826
Merit: 1060
December 08, 2010, 03:29:15 PM
#3
... the next step isn't quite so inexpensive as one might imagine, because it involves stepping up to an 128 bit integer, at a minimum.

It's not necessary to change to a 128-bit integer. Not all of the 64 bits are used, so one of the spare bits can be used as a flag that "shifts" the decimal point.
legendary
Activity: 1708
Merit: 1010
December 08, 2010, 03:23:53 PM
#2
Hey,

Is the limitation of 8 decimal places a protocol one or a client one? If so, why?


A protocol one, but it's not a particularly interdependent design decision.  The bitcoin balances are stored as integers (64 bit, I believe) and the decimal point is centered by the client for human readability in base 10.  It could be changed to a larger integer without a great deal of technical fuss, but that would require the general agreement of the entire running network.  So it's more of a political problem than a technical one.

Quote

I know that 8 decimal places is MASSIVE, but I'm just wondering why since it's inexpensive to have 16 decimals.

As noted above, bitcoin actually does use 16 places in base 10; so the next step isn't quite so inexpensive as one might imagine, because it involves stepping up to an 128 bit integer, at a minimum.
legendary
Activity: 1232
Merit: 1076
December 08, 2010, 11:58:58 AM
#1
Hey,

Is the limitation of 8 decimal places a protocol one or a client one? If so, why?

I know that 8 decimal places is MASSIVE, but I'm just wondering why since it's inexpensive to have 16 decimals.
Jump to: