Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: CtrlAltBernanke420 on March 03, 2015, 05:21:15 AM



Title: Why was 21 million coins chose as the total number of bitcoins?
Post by: CtrlAltBernanke420 on March 03, 2015, 05:21:15 AM
Why not 1 bitcoin…

Why not 1million or 100million bitcoins, why not 21 billion, or trillion?

Why not 14 million?


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: Lauda on March 03, 2015, 05:27:44 AM
Because Satoshi thought that 21 million is ideal.
Who are we to say that it is not?


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: Indefinitely on March 03, 2015, 05:33:32 AM
As a play on the ridiculousness of the legal age to drink alcohol being 21, while the legal age to sacrifice your life and finally becoming an adult is 18.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: bitspill on March 03, 2015, 05:38:01 AM
21 million was not chosen, 21 million is the result of multiple other choices.

Initial block reward was 50BTC
1 block is made every 10 minutes
Block reward halves every 4 years

Those three choices lead to 21 million coins, after so many halvings the block reward eventually hits 0 and at that time the number of coins generated happens to be just under 21 million.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: bitspill on March 03, 2015, 05:39:12 AM
As a play on the ridiculousness of the legal age to drink alcohol being 21

Legal drinking age is 18 in many European countries.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: AgentofCoin on March 03, 2015, 05:41:35 AM
The answer to the universe and everything is 42.
Since we are human, imperfect, and not God, and only know half of everything, we should use half of 42.
Therefore, 21 million coins represents that half of the great work is done.  ;)


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: harrymmmm on March 03, 2015, 05:44:18 AM
Why not 1 bitcoin…

Why not 1million or 100million bitcoins, why not 21 billion, or trillion?

Why not 14 million?

It's not quite as arbitrary as it seems...
The final total of the infinite series is twice the number issued in the first 4 years (before the first halving). That, in turn, is determined completely by the initial block reward (and the 10 min block time).

So once satoshi had decided on the mechanism and issuance rate, the only parameter left to play with was the initial block reward of 50 btc.

Total of 1 btc would mean there's only 10^8 units (satoshis) to handle the whole system ... not enough.

50 per block probably seemed like a good number to get them mined, distributed, enough to play with even if one only mined one block, etc.

I'm guessing about it tho...someone correct me if i'm missing a good reason here.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: bitkilo on March 03, 2015, 05:44:36 AM
How did other coins like doge and NXT .ect work out there total coins?


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: finnile on March 03, 2015, 05:59:51 AM
How did other coins like doge and NXT .ect work out there total coins?

They usually estimate how many coins will be mined, and what will be the time by which they all will be mined.Blockrewards/blocktime etc and all taken into account to come to a number.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: Icardi09 on March 03, 2015, 06:38:35 AM
Satoshi think it's ideal :D
kidding, that number is from mining reward after halving several times in next hundred years.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: Enzyme on March 03, 2015, 06:41:16 AM
Why not 1 bitcoin…

Why not 1million or 100million bitcoins, why not 21 billion, or trillion?

Why not 14 million?
Satoshi wanted Bitcoin to be rare, it's as if he knew the price boom would happen.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: nikona on March 03, 2015, 01:14:56 PM
Why not 1 bitcoin…

Why not 1million or 100million bitcoins, why not 21 billion, or trillion?

Why not 14 million?
Satoshi wanted Bitcoin to be rare, it's as if he knew the price boom would happen.

I guess it was a complete accident..n randomly he got to that amount..when he though 21 mil was enough.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: R2D221 on March 03, 2015, 01:44:58 PM
The answer to the universe and everything is 42.
Since we are human, imperfect, and not God, and only know half of everything, we should use half of 42.
Therefore, 21 million coins represents that half of the great work is done.  ;)

If somebody knew half of everything today, they could pretty much become God.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: slacknation on March 03, 2015, 04:12:13 PM
21 million was not chosen, 21 million is the result of multiple other choices.

Initial block reward was 50BTC
1 block is made every 10 minutes
Block reward halves every 4 years

Those three choices lead to 21 million coins, after so many halvings the block reward eventually hits 0 and at that time the number of coins generated happens to be just under 21 million.

if you look into the source code, 21m was hardcoded, not derived as you have mentioned


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: Kazimir on March 03, 2015, 04:21:24 PM
21 million was not chosen, 21 million is the result of multiple other choices.

Initial block reward was 50BTC
1 block is made every 10 minutes
Block reward halves every 4 years

Those three choices lead to 21 million coins, after so many halvings the block reward eventually hits 0 and at that time the number of coins generated happens to be just under 21 million.

if you look into the source code, 21m was hardcoded, not derived as you have mentioned
Oh, where is that?

Only thing that's hardcoded is:

1. the initial 50 BTC per block
2. reward halving every 210000 blocks

Just these two factors implicitly determine the 21M limit (or actually: 20999999.9769 BTC).


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: escrow.ms on March 03, 2015, 04:25:11 PM
http://bitcoin.stackexchange.com/questions/8439/why-was-21-million-picked-as-the-number-of-bitcoins-to-be-created

Maybe this?


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: LiteCoinGuy on March 03, 2015, 04:32:38 PM
http://www.goldreporter.de/wp-content/uploads/2014/03/Goldw%C3%BCrfel1.jpg

roughly 21x21x21 m



A total of 174,100 tonnes of gold have been mined in human history, according to GFMS as of 2012. This is roughly equivalent to 5.6 billion troy ounces or, in terms of volume, about 9261 m3, or a cube 21.0 m on a side.

Since Bitcoin is often compared to gold, total number of bitcoins matches total amount of gold mined in human history which can be imagined as a cube 21 m on a side.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: runpaint on March 03, 2015, 04:34:10 PM

Only thing that's hardcoded is:

1. the initial 50 BTC per block
2. reward halving every 210000 blocks

Just these two factors implicitly determine the 21M limit (or actually: 20999999.9769 BTC).

Yes, but WHY?

The block reward doesn't continue to halve forever.  It stops, instead of going to .5, .25, .12, .06, .03, etc.

The correct answer is that Bitcoin was designed to have enough divisible units (Satoshis) to replace the entire money supply of the world.  Obviously it was a rough estimate, but the intent was that 21 million * 100 million Satoshis = enough units to replace all fiat money.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: DannyHamilton on March 03, 2015, 04:34:34 PM
21 million was not chosen, 21 million is the result of multiple other choices.

Initial block reward was 50BTC
1 block is made every 10 minutes
Block reward halves every 4 years

Those three choices lead to 21 million coins, after so many halvings the block reward eventually hits 0 and at that time the number of coins generated happens to be just under 21 million.

if you look into the source code, 21m was hardcoded, not derived as you have mentioned

Looks derived exactly as explained to me (except that the reward halves every 210000 blocks which is approximately every 4 years):

https://github.com/bitcoin/bitcoin/blob/59310f1c02673c3ee068cd82f8654bed9b757889/src/main.cpp#L1229
Code:
CAmount GetBlockValue(int nHeight, const CAmount& nFees)
{
    CAmount nSubsidy = 50 * COIN;
    int halvings = nHeight / Params().SubsidyHalvingInterval();
    // Force block reward to zero when right shift is undefined.
    if (halvings >= 64)
        return nFees;
    // Subsidy is cut in half every 210,000 blocks which will occur approximately every 4 years.
    nSubsidy >>= halvings;
    return nSubsidy + nFees;
}


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: runpaint on March 03, 2015, 04:36:35 PM
21 million was the intended number, it isn't "derived" in the sense that it's an arbitrary number.  It was coded intentionally to produce 21 million.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: DannyHamilton on March 03, 2015, 04:38:28 PM
21 million was the intended number, it isn't "derived" in the sense that it's an arbitrary number.  It was coded intentionally to produce 21 million.

Really?

Did you have a conversation with Mr. Nakamoto whereby he explained this to you?  Or are you just making things up out of your own imagination and assuming that you are correct?

If he wanted to produce exactly 21 million then he did a poor job of programming.

There will never be 21 million bitcoins.  The maximum that will be produced with the programming that Mr. Nakamoto chose is: 20999999.9769

If he was specifically intending 21 million, then why would he code it to intentionally produce only 20999999.9769?


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: ngocbkcse on March 03, 2015, 04:39:14 PM
this is the 21st century --> 21M BTC :D


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: GreekBitcoin on March 03, 2015, 04:40:55 PM
So that if all gold speculation goes to Bitcoin (at the prices of 2009) the price of bitcoin would be 1000000$ :P


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: runpaint on March 03, 2015, 04:50:35 PM
21 million was the intended number, it isn't "derived" in the sense that it's an arbitrary number.  It was coded intentionally to produce 21 million.

Really?

Did you have a conversation with Mr. Nakamoto whereby he explained this to you?


No, Hal Finney and Ray Dillenger did.


Quote
Ray Dillenger recalls:

I remember this discussion, actually.

Finney, Satoshi, and I discussed how divisible a Bitcoin ought to be.  Satoshi had already more or less decided on a 50-coin per block payout with halving every so often to add up to a 21M coin supply.  Finney made the point that people should never need any currency division smaller than a US penny, and then somebody (I forget who) consulted some oracle somewhere like maybe Wikipedia and figured out what the entire world’s M1 money supply at that time was.

We debated for a while about which measure of money Bitcoin most closely approximated; but M2, M3, and so on are all for debt-based currencies, so I agreed with Finney that M1 was probably the best measure.

21Million, times 10^8 subdivisions, meant that even if the whole word’s money supply were replaced by the 21 million bitcoins the smallest unit (we weren’t calling them Satoshis yet)  would still be worth a bit less than a penny, so no matter what happened — even if the entire economy of planet earth were measured in Bitcoin — it would never inconvenience people by being too large a unit for convenience.

https://thewealthofchips.wordpress.com/2014/10/01/why-bitcoin-is-and-isnt-ideal-money/



Danny Hamilton, you're not smart enough or important enough to back up how much of an asshole you are.  Maybe take it down a few notches, especially when you're wrong and making a fool of yourself.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: R2D221 on March 03, 2015, 04:52:04 PM
I think asking this kind of questions is like asking “Why did you wear green clothes today?”. Yes, there was a decision to be made, but not a very deep one, to be honest.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: runpaint on March 03, 2015, 04:54:07 PM
I think asking this kind of questions is like asking “Why did you wear green clothes today?”. Yes, there was a decision to be made, but not a very deep one, to be honest.

Except you're wrong, as shown by the above quote regarding the decisions that went into determining the supply of bitcoins.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: DannyHamilton on March 03, 2015, 05:01:19 PM
21 million was the intended number, it isn't "derived" in the sense that it's an arbitrary number.  It was coded intentionally to produce 21 million.

Really?

Did you have a conversation with Mr. Nakamoto whereby he explained this to you?


No, Hal Finney and Ray Dillenger did.


Quote
Ray Dillenger recalls:

I remember this discussion, actually.

Finney, Satoshi, and I discussed how divisible a Bitcoin ought to be.  Satoshi had already more or less decided on a 50-coin per block payout with halving every so often to add up to a 21M coin supply.  Finney made the point that people should never need any currency division smaller than a US penny, and then somebody (I forget who) consulted some oracle somewhere like maybe Wikipedia and figured out what the entire world’s M1 money supply at that time was.

We debated for a while about which measure of money Bitcoin most closely approximated; but M2, M3, and so on are all for debt-based currencies, so I agreed with Finney that M1 was probably the best measure.

21Million, times 10^8 subdivisions, meant that even if the whole word’s money supply were replaced by the 21 million bitcoins the smallest unit (we weren’t calling them Satoshis yet)  would still be worth a bit less than a penny, so no matter what happened — even if the entire economy of planet earth were measured in Bitcoin — it would never inconvenience people by being too large a unit for convenience.

https://thewealthofchips.wordpress.com/2014/10/01/why-bitcoin-is-and-isnt-ideal-money/

Danny Hamilton, you're not smart enough or important enough to back up how much of an asshole you are.  Maybe take it down a few notches, especially when you're wrong and making a fool of yourself.

And yet the quote that you've posted specifically states:

Quote
Satoshi had already more or less decided on a 50-coin per block payout with halving every so often

So it appears that the 21 million is the derived amount that "50-coin per block payout with halving every so often" would "add up to".

That post you quoted isn't about how the 21 million was "decided", it is about the divisibility.  It starts by pointing out that the "50-coin per block payout with halving every so often", which results in 21 million, had already been decided (but says nothing about why it was chosen), and then goes on to explain why 108 subdivisions were chosen.

I'll try not to be such an asshole in the future, but for some reason my patience always seems to run out when I'm dealing with you.



Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: runpaint on March 03, 2015, 05:09:33 PM
So instead of 21 million, he ended up deciding to multiply that number of units by 100 million.  That's kind of different.

And if you follow the links, there is even more commentary on the limit of 21 million bitcoins -


Quote
A 32bit signed integer can represent numbers from −2,147,483,648 to 2,147,483,647

if you wanted to do accounting for modern currencies with pure integers due to denomination factor of 100 (1$ = 100 cents)
then the obvious choice is to work in cents
Code:

       1 -> 1 cent
     100 -> 1 $

in such a system the most you can represent is slight above 21 million $
Code:

   from  −21,474,836.48 $      to       21,474,836.47 $

Note that left of side of the dot there are 8 digit/decimal places (21 xxx xxx).
Lets assume 1BTC worth(represents) 1 $.
To make it symmetric the dynamic logarithmic range has to be [ 10E-8 , 10E8 ]
This range permits exponential growth or decay for 2*8 orders of magnitude!



As for this:


I'll try not to be such an asshole in the future, but for some reason my patience always seems to run out when I'm dealing with you.



Yeah it's just me, and also the entire ignore list you're sharing so that everyone else can also ignore the people you ignore.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: neurotypical on March 03, 2015, 05:14:55 PM
So that if all gold speculation goes to Bitcoin (at the prices of 2009) the price of bitcoin would be 1000000$ :P

If bitcoin goes above all electronic payment methods it would be around 240.000 USD per coin.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: jonald_fyookball on March 03, 2015, 05:26:09 PM
yeah basically derived as other have people have mentioned. 50x210,000 will give you half that, and then you double it for the infinite series.  the 210,000 is just a round number representing 4 years of 10 minute blocks.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: josef2000 on March 03, 2015, 06:28:51 PM
The question is-why not?


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: ebliever on March 03, 2015, 06:39:06 PM
Oh, I thought it was obvious. 21 million. 21 is half of 42, the answer to Life, the Universe and Everything. But Bitcoin is only only half the answer, because money isn't everything. And 21 million instead of 21 because 21 would make it sound like a blackjack game. There, does that make sense? (OK, I'm in a weird mood right now... ;-)


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: lolled on March 03, 2015, 06:45:03 PM
Pretty sure, it was not a random number picked up. It was derived from a lot of thing, and he also thought about the future of the coin while doing that


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: RedhatCAT on March 03, 2015, 06:49:26 PM
My understanding is that the initial 50 BTC block reward was an arbitrary number, as was the 210k number of blocks between the times that the block subsidy chances.

The 21 million number is simply the result of using the two above arbitrary numbers. (although the fact the initial block reward and the number of blocks between block subsidy changes being arbitrary is speculation, I do not see any other reasonable explanation)


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: teukon on March 03, 2015, 06:55:42 PM
In a slightly earlier version of Satoshi's code (pre-genesis) the limit was 20 million bitcoins.  Blocks were set to arrive every 15 minutes with an initial subsidy of 100 BTC set to halve every 100`000 blocks (about 2 years and 10 months).

Certainly there was some thought put into the magnitude of the limit.  While Satoshi had 63-bits of space to play with (using signed 64-bit integers at the time) it seems possible that he intentionally confined bitcoin amounts to well within 53-bits so that amounts could be handled comfortably by the IEEE 754 binary64 (https://en.wikipedia.org/wiki/IEEE_floating_point#Basic_and_interchange_formats) datatype (potentially useful for JSON-RPC).

What we can be reasonably sure of is that the particular figure of 21 million arose simply as part of some last-minute tweaking and carries no deeper meaning.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: runpaint on March 03, 2015, 07:04:32 PM
In a slightly earlier version of Satoshi's code (pre-genesis) the limit was 20 million bitcoins.  Blocks were set to arrive every 15 minutes with an initial subsidy of 100 BTC set to halve every 100`000 blocks (about 2 years and 10 months).

Certainly there was some thought put into the magnitude of the limit.  While Satoshi had 63-bits of space to play with (using signed 64-bit integers at the time) it seems possible that he intentionally confined bitcoin amounts to well within 53-bits so that amounts could be handled comfortably by the IEEE 754 binary64 (https://en.wikipedia.org/wiki/IEEE_floating_point#Basic_and_interchange_formats) datatype (potentially useful for JSON-RPC).

What we can be reasonably sure of is that the particular figure of 21 million arose simply as part of some last-minute tweaking and carries no deeper meaning.


Sounds reasonable to me


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: MegaHustlr on March 03, 2015, 08:52:23 PM
As  escrow.ms shared , the link provides a proper mathematical explanation on this

Calculate the number of blocks per 4 year cycle:

6 blocks per hour
* 24 hours per day
* 365 days per year
* 4 years per cycle
= 210,240
~= 210,000

Sum all the block reward sizes:

50 + 25 + 12.5 + 6.25 + 3.125 + ... = 100

Multiply the two:

210,000 * 100 = 21 million.

Economically, because the currency is effectively infinitely divisible, then the precise amount doesn't matter, as long as the limit remains fixed.

:)


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: A.F.K on March 03, 2015, 09:02:44 PM
21 million was not chosen, 21 million is the result of multiple other choices.

Initial block reward was 50BTC
1 block is made every 10 minutes
Block reward halves every 4 years

Those three choices lead to 21 million coins, after so many halvings the block reward eventually hits 0 and at that time the number of coins generated happens to be just under 21 million.

Nice answer, thanks for spelling it out like that.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: redsn0w on March 03, 2015, 09:07:54 PM
I think it is correlated with "gold" , but I'm not sure (surely I'm wrong).


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: pedrog on March 03, 2015, 09:14:33 PM
As a play on the ridiculousness of the legal age to drink alcohol being 21

Legal drinking age is 18 in many European countries.

16 in my country, but soon to be 18.

Total number of bitcoins to ever exist is 20999999.97690000, a little less than 21 million. :)


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: BitcoinPenny on March 03, 2015, 09:27:41 PM
The answer to the universe and everything is 42.

I love that book series. =)

Me


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: zebedee on April 22, 2015, 12:20:08 PM
In a slightly earlier version of Satoshi's code (pre-genesis) the limit was 20 million bitcoins.  Blocks were set to arrive every 15 minutes with an initial subsidy of 100 BTC set to halve every 100`000 blocks (about 2 years and 10 months).

Certainly there was some thought put into the magnitude of the limit.  While Satoshi had 63-bits of space to play with (using signed 64-bit integers at the time) it seems possible that he intentionally confined bitcoin amounts to well within 53-bits so that amounts could be handled comfortably by the IEEE 754 binary64 (https://en.wikipedia.org/wiki/IEEE_floating_point#Basic_and_interchange_formats) datatype (potentially useful for JSON-RPC).

What we can be reasonably sure of is that the particular figure of 21 million arose simply as part of some last-minute tweaking and carries no deeper meaning.
Interesting - where is this code available to support your claim (not that I don't believe you, but I'd like to see it).


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: zebedee on April 22, 2015, 12:22:34 PM
Total number of bitcoins to ever exist is 20999999.97690000, a little less than 21 million. :)
No, as discussed on this thread:

https://bitcointalk.org/index.php?topic=1029082

at least "150 + a bit" of those coins never existed in the first place (3 unspendable coinbases + miners refusing the full reward + fees).


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: teukon on April 22, 2015, 01:00:34 PM
In a slightly earlier version of Satoshi's code (pre-genesis) the limit was 20 million bitcoins.  Blocks were set to arrive every 15 minutes with an initial subsidy of 100 BTC set to halve every 100`000 blocks (about 2 years and 10 months).

Certainly there was some thought put into the magnitude of the limit.  While Satoshi had 63-bits of space to play with (using signed 64-bit integers at the time) it seems possible that he intentionally confined bitcoin amounts to well within 53-bits so that amounts could be handled comfortably by the IEEE 754 binary64 (https://en.wikipedia.org/wiki/IEEE_floating_point#Basic_and_interchange_formats) datatype (potentially useful for JSON-RPC).

What we can be reasonably sure of is that the particular figure of 21 million arose simply as part of some last-minute tweaking and carries no deeper meaning.
Interesting - where is this code available to support your claim (not that I don't believe you, but I'd like to see it).

I'm surprised I didn't provide a link to begin with.  I must have been in a hurry.

Cryddit posted the source of an alpha snapshot of the reference client here (https://bitcointalk.org/index.php?topic=382374).  Search the page for "GetNextWorkRequired".  You should find all the information you're looking for within this function.

Please let me know if you end up with different numbers.  I routinely screw up idle calculations.


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: ensurance982 on April 22, 2015, 02:28:39 PM
In a slightly earlier version of Satoshi's code (pre-genesis) the limit was 20 million bitcoins.  Blocks were set to arrive every 15 minutes with an initial subsidy of 100 BTC set to halve every 100`000 blocks (about 2 years and 10 months).

Certainly there was some thought put into the magnitude of the limit.  While Satoshi had 63-bits of space to play with (using signed 64-bit integers at the time) it seems possible that he intentionally confined bitcoin amounts to well within 53-bits so that amounts could be handled comfortably by the IEEE 754 binary64 (https://en.wikipedia.org/wiki/IEEE_floating_point#Basic_and_interchange_formats) datatype (potentially useful for JSON-RPC).

What we can be reasonably sure of is that the particular figure of 21 million arose simply as part of some last-minute tweaking and carries no deeper meaning.
Interesting - where is this code available to support your claim (not that I don't believe you, but I'd like to see it).

I'm surprised I didn't provide a link to begin with.  I must have been in a hurry.

Cryddit posted the source of an alpha snapshot of the reference client here (https://bitcointalk.org/index.php?topic=382374).  Search the page for "GetNextWorkRequired".  You should find all the information you're looking for within this function.

Please let me know if you end up with different numbers.  I routinely screw up idle calculations.

Highly interesting! I always find it very interesting to see early versions or concepts of things and like to dig around to see what has changed and what remained until the final version. I think the most important factor is that every basic addition of an amount must be doable with a given integer representation using 64 bit, yeah!


Title: Re: Why was 21 million coins chose as the total number of bitcoins?
Post by: BTC_Superman on May 14, 2015, 02:09:13 PM
I do not think Satoshi chose it intentionally, he chose it randomly.