Bitcoin Forum
June 22, 2024, 02:37:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How many decimals -> to surpass 20,999,999.99999999  (Read 1392 times)
remotemass (OP)
Legendary
*
Offline Offline

Activity: 1120
Merit: 1017


ASMR El Salvador


View Profile WWW
October 15, 2014, 07:32:31 PM
Last edit: October 15, 2014, 07:50:07 PM by remotemass
 #1

Right now BTC has 8 decimals and can reach a maximum of 20,999,999.97690000.
What is the minimum number of decimals that BTC need to be able to surpass 20,999,999.99999999.
That is, for how many decimals would BTC have to be extended to so that the cumulative value could reach 20,999,999.99999999?

{ Imagine a sequence of bits generated from the first decimal place of the square roots of whole integers that are irrational numbers. If the decimal falls between 0 and 5, it's considered bit 0, and if it falls between 5 and 10, it's considered bit 1. This sequence from a simple integer count of contiguous irrationals and their logical decimal expansion of the first decimal place is called the 'main irrational stream.' Our goal is to design a physical and optical computing system system that can detect when this stream starts matching a specific pattern of a given size of bits. bitcointalk.org/index.php?topic=166760.0 } Satoshi did use a friend class in C++ and put a comment on the code saying: "This is why people hate C++".
pawel7777
Legendary
*
Offline Offline

Activity: 2478
Merit: 1580



View Profile WWW
October 15, 2014, 08:55:20 PM
 #2

? You mean if the halving doesn't end on 1 satoshi, but goes further (0.5 sat; 0.25 sat)?



               ▄██▄▄                          ▄████
             ▄█▀   ▀▀▄▄                    ▄█▀▀   ▀█▄
            █▀         ▀▄                ▄█▀        █▄
           █▀   ▄█▄▄            ▄▄▄▄▄▄███▀      ▀▄   █▄
          ▄█   ▄█▀███▄▄                          █   ▀█
          █    ▀   ▀████▄   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄        █   █▄
          █         ▀████████████████████████▄▄▄      ██
         ██        ▄██████████████████████████████▄    ▀█▄
        ▄█▀     ▄████████████▀▀▀▀▀▀▀▀▀▀█████████████▄▄   ▀█▄
      ▄█▀     █████████████              ▀▀████████████▄   █▄
    ▄█▀        ▄██████████████▀▀█▄    ▄▄     █  ▀██ ▀███▄   ██
   ███▄▄     ▄███████████▀▀           ▀██▄        ▀  ▀▀     █▀
     █▀     ███████████▀                               ▄▀   ██
    █▀    ▄██████████▀                       ▄▄▄       ▀   ▄█
   █▀    ▄██████████▀           ▄▄      ▀▀████████▄         ▀██▄
  █▀    ▄███████████          ▄██▀   ▀▀█▄   ▀███████▄▄▄██▄▄   ▀██▄
 █▀     ▀▀▀▀▀▀██████         ████      ▀██▄  ▀████████   ▀▀▀    ▀█▄
▄█              ▀▀█           ████  ▄▄█▄▄███▄  ▀██████           ▀█▄
██▄▄▄▄▄                       █████  ▀▀▀▀▀▀▀▀▀   ▀████▄           ██
       ▀▀▀▀▀▄▄▄                █████▄▄▄            ▀▀▀▀▀▀        ▄██
               ▀▀▀▄▄           ▀█████████████████▄▄          ▄▀▀▀
                    ▀▀▄▄         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀    ▀
                        ▀
.
.BETFURY..
|
         ▄▄▄▄▄████▀▄▄▄
      ▄███▀▀▀█▀▀  ▄████▄
    ▄██     ▀       ▀▀███▄
  ▄██   ▄██▄    ▄█▄   ▀████▄
 ██▀    ████▀▀▀▀▀▀█     ▀███
██▀   ▄███   ███▄▄▄█▄    ▀███
██    ███  ▄█▀▀█▀▀███     ███
██    ███▄▄██ █▄█▄ ███    ██▀
██        ▀▀█▄▄▄▄▄▄█▀     ██
██▄   ▄  ▄▄▄ ▄▄▄  ▄▄     ▄█▀
 ██▄█▀  █▄▄█ █▄  █ ▄▄   ▄██
  ███   █▄▄█ █   █▄▄█  ▄█▀
   ████▄             ▄██▀
    ▀█▀█▄▄█▄▄▄▄▄▄▄███▀
       ▀▀▀████▀▀▀▀
WIN REAL CRYPTO IN THE REAL DROP
JOIN $20,000,000 CRYPTODROP
|Join Fury Game
Get Free Crypto
BFG, USDT, BTC, ETH
|▄████████████████████████▄
██████████████████████████
████▀▀▀▀▀██████████▀▀▀████
████▄ ▀█▄ ▀██████▀  ▄█████
██████▄ ▀█▄ ▀██▀  ▄███████
████████▄ ▀█▄   ▄█████████
██████████▄ ██ ▀██████████
█████████▀   ▀█▄ ▀████████
███████▀  ▄██▄ ▀█▄ ▀██████
█████▀  ▄██████▄ ▀█▄ ▀████
████▄▄▄██████████▄▄▄▄▄████
 ████████████████████████
▄█████████████████████▄
███████████████████████
████████████████▀▀█████
███████████▀▀▀    █████
██████▀▀▀   ▄▀   ██████
███▄     ▄█▀     ██████
██████▄ █▀      ███████
███████▌▐       ███████
████████ ▄██▄  ████████
██████████████▄████████
███████████████████████
▀█████████████████████▀
...PLAY...
2double0
Legendary
*
Offline Offline

Activity: 2618
Merit: 1105


View Profile
October 15, 2014, 09:18:54 PM
 #3

? You mean if the halving doesn't end on 1 satoshi, but goes further (0.5 sat; 0.25 sat)?

Block rewards won't reach 1 satoshi.
Someone correct me if im wrong.
franky1
Legendary
*
Offline Offline

Activity: 4256
Merit: 4532



View Profile
October 15, 2014, 09:31:56 PM
Last edit: October 15, 2014, 09:42:05 PM by franky1
 #4

why do people care about the year 2140.. YOU WONT BE ALIVE

but if you wish to write a book for your grandkids to read when they are adults.. heres some stuff

in the last 4 years before rewards per block stops.. the circulation will be
20,999,999.99790000

during that last 4 years each block would only give 1 satoshi per block. (maths brings the total at the end of 4 years to be the 21mill)..

at the end of the 4th year (2140) no one will notice or care that block rewards just stop, as their mindset has moved over to concentrate on tx fee's many years before


I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
pawel7777
Legendary
*
Offline Offline

Activity: 2478
Merit: 1580



View Profile WWW
October 15, 2014, 09:32:19 PM
 #5

? You mean if the halving doesn't end on 1 satoshi, but goes further (0.5 sat; 0.25 sat)?

Block rewards won't reach 1 satoshi.
Someone correct me if im wrong.

It says here it will (Projected Bitcoins Long Term):

https://en.bitcoin.it/wiki/Controlled_supply



               ▄██▄▄                          ▄████
             ▄█▀   ▀▀▄▄                    ▄█▀▀   ▀█▄
            █▀         ▀▄                ▄█▀        █▄
           █▀   ▄█▄▄            ▄▄▄▄▄▄███▀      ▀▄   █▄
          ▄█   ▄█▀███▄▄                          █   ▀█
          █    ▀   ▀████▄   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄        █   █▄
          █         ▀████████████████████████▄▄▄      ██
         ██        ▄██████████████████████████████▄    ▀█▄
        ▄█▀     ▄████████████▀▀▀▀▀▀▀▀▀▀█████████████▄▄   ▀█▄
      ▄█▀     █████████████              ▀▀████████████▄   █▄
    ▄█▀        ▄██████████████▀▀█▄    ▄▄     █  ▀██ ▀███▄   ██
   ███▄▄     ▄███████████▀▀           ▀██▄        ▀  ▀▀     █▀
     █▀     ███████████▀                               ▄▀   ██
    █▀    ▄██████████▀                       ▄▄▄       ▀   ▄█
   █▀    ▄██████████▀           ▄▄      ▀▀████████▄         ▀██▄
  █▀    ▄███████████          ▄██▀   ▀▀█▄   ▀███████▄▄▄██▄▄   ▀██▄
 █▀     ▀▀▀▀▀▀██████         ████      ▀██▄  ▀████████   ▀▀▀    ▀█▄
▄█              ▀▀█           ████  ▄▄█▄▄███▄  ▀██████           ▀█▄
██▄▄▄▄▄                       █████  ▀▀▀▀▀▀▀▀▀   ▀████▄           ██
       ▀▀▀▀▀▄▄▄                █████▄▄▄            ▀▀▀▀▀▀        ▄██
               ▀▀▀▄▄           ▀█████████████████▄▄          ▄▀▀▀
                    ▀▀▄▄         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀    ▀
                        ▀
.
.BETFURY..
|
         ▄▄▄▄▄████▀▄▄▄
      ▄███▀▀▀█▀▀  ▄████▄
    ▄██     ▀       ▀▀███▄
  ▄██   ▄██▄    ▄█▄   ▀████▄
 ██▀    ████▀▀▀▀▀▀█     ▀███
██▀   ▄███   ███▄▄▄█▄    ▀███
██    ███  ▄█▀▀█▀▀███     ███
██    ███▄▄██ █▄█▄ ███    ██▀
██        ▀▀█▄▄▄▄▄▄█▀     ██
██▄   ▄  ▄▄▄ ▄▄▄  ▄▄     ▄█▀
 ██▄█▀  █▄▄█ █▄  █ ▄▄   ▄██
  ███   █▄▄█ █   █▄▄█  ▄█▀
   ████▄             ▄██▀
    ▀█▀█▄▄█▄▄▄▄▄▄▄███▀
       ▀▀▀████▀▀▀▀
WIN REAL CRYPTO IN THE REAL DROP
JOIN $20,000,000 CRYPTODROP
|Join Fury Game
Get Free Crypto
BFG, USDT, BTC, ETH
|▄████████████████████████▄
██████████████████████████
████▀▀▀▀▀██████████▀▀▀████
████▄ ▀█▄ ▀██████▀  ▄█████
██████▄ ▀█▄ ▀██▀  ▄███████
████████▄ ▀█▄   ▄█████████
██████████▄ ██ ▀██████████
█████████▀   ▀█▄ ▀████████
███████▀  ▄██▄ ▀█▄ ▀██████
█████▀  ▄██████▄ ▀█▄ ▀████
████▄▄▄██████████▄▄▄▄▄████
 ████████████████████████
▄█████████████████████▄
███████████████████████
████████████████▀▀█████
███████████▀▀▀    █████
██████▀▀▀   ▄▀   ██████
███▄     ▄█▀     ██████
██████▄ █▀      ███████
███████▌▐       ███████
████████ ▄██▄  ████████
██████████████▄████████
███████████████████████
▀█████████████████████▀
...PLAY...
remotemass (OP)
Legendary
*
Offline Offline

Activity: 1120
Merit: 1017


ASMR El Salvador


View Profile WWW
October 15, 2014, 11:08:00 PM
 #6

Yes, the rewards will always keep halving but the 8 decimals limitation truncates the total limit.
What I was wondering is how many more decimals we would need to surpass 20,999,999.99999999 BTC was reached.
Does anyone have an answer?

{ Imagine a sequence of bits generated from the first decimal place of the square roots of whole integers that are irrational numbers. If the decimal falls between 0 and 5, it's considered bit 0, and if it falls between 5 and 10, it's considered bit 1. This sequence from a simple integer count of contiguous irrationals and their logical decimal expansion of the first decimal place is called the 'main irrational stream.' Our goal is to design a physical and optical computing system system that can detect when this stream starts matching a specific pattern of a given size of bits. bitcointalk.org/index.php?topic=166760.0 } Satoshi did use a friend class in C++ and put a comment on the code saying: "This is why people hate C++".
Beliathon
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1000


https://youtu.be/PZm8TTLR2NU


View Profile WWW
October 16, 2014, 12:32:58 AM
 #7

...no one will notice or care that block rewards just stop, as their mindset has moved over to concentrate on tx fee's many years before
Listen to this man, he knows what he's talking about.

Remember Aaron Swartz, a 26 year old computer scientist who died defending the free flow of information.
cr1776
Legendary
*
Offline Offline

Activity: 4074
Merit: 1303


View Profile
October 16, 2014, 01:52:32 AM
 #8

Yes, the rewards will always keep halving but the 8 decimals limitation truncates the total limit.
What I was wondering is how many more decimals we would need to surpass 20,999,999.99999999 BTC was reached.
Does anyone have an answer?

This may give you a hint on calculating the answer:
http://en.m.wikipedia.org/wiki/Geometric_progression. Or geometric series.

Perhaps no one will be alive, but it is an interesting exercise for the mathematically inclined. 

Does it converge or diverge?

This link has a bit more:
http://www.quora.com/Why-is-Bitcoins-cap-set-at-circa-21-million-coins-and-not-more-or-less


(Btw Alcor and others might contest the assertion that for sure no one will be alive.)
Jamacn
Full Member
***
Offline Offline

Activity: 236
Merit: 100



View Profile
October 16, 2014, 02:47:04 AM
 #9

As long as needed, regardless of how much can be created
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
October 16, 2014, 03:07:34 AM
 #10

Between the years 2104 and 2140 only 1 bitcoin is added.
That's about 36 years to generate the last whole bitcoin.

Per the rules of the protocol, and geometric progression, no amount of decimal places will result in accumulating more than 21 million, unless there is rounding (up), and even then it will take another thousand years.

iwillwin
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
October 16, 2014, 03:44:12 AM
 #11

And why can BTC only reach a maximum of this value ? Any possible explanation ? I mean why this specific figure only ? That too with decimals ........
jonald_fyookball
Legendary
*
Offline Offline

Activity: 1302
Merit: 1004


Core dev leaves me neg feedback #abuse #political


View Profile
October 16, 2014, 04:16:50 AM
Last edit: October 16, 2014, 04:58:39 AM by jonald_fyookball
 #12

What I was wondering is how many more decimals we would need to surpass 20,999,999.99999999 BTC was reached.
Does anyone have an answer?

Actually, you will NEVER get there.

With unlimited decimals,
the limit will be 20,999,999.979.
 
Check out the chart on

https://en.bitcoin.it/wiki/Controlled_supply

look at line 34, in the column that
says "BTC added" -- you will see
we add .0021 BTC in the last era
of 210,000 blocks where this is
a reward of 1 satoshi.  (which
also makes sense since there's
a hundred million satoshis in 1 BTC)
.

Now...in a geometric progression where
you keep halving something, the
limit will be double of what you
started with.

So that means the next era would be
half of .0021, etc... with all the remaining
eras combined approaching  .0021.

So if you add .0021 to the current limit
of 20999999.97690000    you get
20,999,999.979.

This (and 21 million) may seem like a
funny, abritrary number.  It is
simply a consequence of the 210,000 block
halving number chosen by Satoshi.

Franky, not sure where you got your number
but it is incorrect...


in the last 4 years before rewards per block stops.. the circulation will be
20,999,999.99790000

Check the chart in the link
https://en.bitcoin.it/wiki/Controlled_supply


EDIT:

After thinking further about it, I realize the answer
above is true only if we extend the decimal
precision at that point in the future when
we are at the last block.  If we wind the
clock back to 2009 when Bitcoin got started,
and introduced unlimited digits there, the theoretical
limit WOULD be 21 million. (210,000 blocks x 50 BTC,
and then doubled)...The bitwise rotation
rounding is what causes it to go lower.

Calculating the exact number of initial decimal
places needed to eventually reach .99999999
if we started Bitcoin over from the beginning
is non-trivial because you would
need to figure out the cumulative effects on
rounding over the geometric progression, which
I don't have knowledge of or time to research...
but this was an interesting problem!

If someone is really curious, you can always
write a simple program to do it, but you
will need an unlimited decimal library
otherwise you'll run out of room.





odolvlobo
Legendary
*
Offline Offline

Activity: 4354
Merit: 3273



View Profile
October 16, 2014, 07:24:26 AM
 #13

And why can BTC only reach a maximum of this value ? Any possible explanation ? I mean why this specific figure only ? That too with decimals ........

The number of bitcoins created in each block is already known. Beginning with block 6930000 around the year 2140, the number will forever be 0. Thus you can add up the numbers for all the blocks and you will compute a total of 20999999.97690000 BTC.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
remotemass (OP)
Legendary
*
Offline Offline

Activity: 1120
Merit: 1017


ASMR El Salvador


View Profile WWW
October 16, 2014, 07:55:04 AM
 #14

Per the rules of the protocol, and geometric progression, no amount of decimal places will result in accumulating more than 21 million, unless there is rounding (up), and even then it will take another thousand years.

I'm saying more than 20,999,999.99999999 not more than 21 million.

I experimented with a script but one of my variables gets out of range...

Code:
<!DOCTYPE HTML>
<html>
<body>
<script>
var total=0;
var block = 1;
var reward = 50;
var year = 2009;
while(total<20999999.99999999){
for(block=1; block<=210000; block++){
total += reward;
};
reward /= 2;
        year += 4;
document.write('reward: '+reward+'<br/>');
document.write('total: '+total+'<br/>');
document.write('year: '+year+'<br/>');
};
</script>
</body>
</html>

But I got to the conclusion we would need hundreds, if not thousands, of extra decimals and years of rewards.

{ Imagine a sequence of bits generated from the first decimal place of the square roots of whole integers that are irrational numbers. If the decimal falls between 0 and 5, it's considered bit 0, and if it falls between 5 and 10, it's considered bit 1. This sequence from a simple integer count of contiguous irrationals and their logical decimal expansion of the first decimal place is called the 'main irrational stream.' Our goal is to design a physical and optical computing system system that can detect when this stream starts matching a specific pattern of a given size of bits. bitcointalk.org/index.php?topic=166760.0 } Satoshi did use a friend class in C++ and put a comment on the code saying: "This is why people hate C++".
jonald_fyookball
Legendary
*
Offline Offline

Activity: 1302
Merit: 1004


Core dev leaves me neg feedback #abuse #political


View Profile
October 16, 2014, 08:09:58 AM
 #15

you need something like php binary calculator.
http://php.net/manual/en/intro.bc.php

Your script is not doing the bit shift rounding
btw....but think of it this way, any rounding
down is going to be a permanent loss of precision,
so you need enough decimal places to avoid any
rounding for all the way out to a single satoshi.

not sure why you think it would be thousands of decimal places though...

it seems that 100 or points will be sufficient
to avoid rounding errors out to eight points don't you think?

Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
October 16, 2014, 08:50:08 AM
 #16

But I got to the conclusion we would need hundreds, if not thousands, of extra decimals and years of rewards.

Yah, I meant the same thing. Smiley It will approach it, but not reach it, when the sun is about to implode (or something heat death of the universe).

Q7
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


View Profile WWW
October 16, 2014, 12:15:42 PM
 #17

Can the system intepret and round up mathematically that the smallest number which is 0.00000001 if divided by 2 will become zero. So here it can never reach the full 21mil. Ok most probably I'm wrong here. Can somebody provide a more accurate answer and explanation. Getting myself confused Huh Huh

jonald_fyookball
Legendary
*
Offline Offline

Activity: 1302
Merit: 1004


Core dev leaves me neg feedback #abuse #political


View Profile
October 16, 2014, 03:06:07 PM
 #18

Can the system intepret and round up mathematically that the smallest number which is 0.00000001 if divided by 2 will become zero. So here it can never reach the full 21mil. Ok most probably I'm wrong here. Can somebody provide a more accurate answer and explanation. Getting myself confused Huh Huh

if you round up you would exceed 21M.....we round DOWN, that's how it stays below 21M.

remotemass (OP)
Legendary
*
Offline Offline

Activity: 1120
Merit: 1017


ASMR El Salvador


View Profile WWW
October 16, 2014, 03:25:23 PM
 #19

Can the system intepret and round up mathematically that the smallest number which is 0.00000001 if divided by 2 will become zero. So here it can never reach the full 21mil. Ok most probably I'm wrong here. Can somebody provide a more accurate answer and explanation. Getting myself confused Huh Huh

if you round up you would exceed 21M.....we round DOWN, that's how it stays below 21M.

It's not rounded. It's truncated. It's different.

{ Imagine a sequence of bits generated from the first decimal place of the square roots of whole integers that are irrational numbers. If the decimal falls between 0 and 5, it's considered bit 0, and if it falls between 5 and 10, it's considered bit 1. This sequence from a simple integer count of contiguous irrationals and their logical decimal expansion of the first decimal place is called the 'main irrational stream.' Our goal is to design a physical and optical computing system system that can detect when this stream starts matching a specific pattern of a given size of bits. bitcointalk.org/index.php?topic=166760.0 } Satoshi did use a friend class in C++ and put a comment on the code saying: "This is why people hate C++".
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
October 16, 2014, 04:27:39 PM
 #20

at the end of the 4th year (2140) no one will notice or care that block rewards just stop, as their mindset has moved over to concentrate on tx fee's many yearsdecades before

Fixed that. In fact, some of us will be alive to see a time when the block subsidy is already irrelevant, e.g. 1.5 BTC per block around 2028.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!