Bitcoin Forum
May 12, 2024, 12:06:45 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Is it time to think about decimal precision ?  (Read 731 times)
spartacusrex (OP)
Hero Member
*****
Offline Offline

Activity: 718
Merit: 545



View Profile
December 06, 2017, 09:30:15 AM
 #21

Even if BTC only went to 100k.. haha.. it would still require sub-satoshi payments if you were counting every light switch on\off, or every single byte of data sent from a certain server.

Nobody's going to be counting that kind of IoT stuff on the blockchain, there just isn't enough space (bytes are too valuable).

... Lightning network.. will allow near-infinite off chain txns. Your light switch, along with the rest of your house, will have a payment channel open. ping ping ping. Of course they won't be on-chain txns.

It's really bad bad very bad idea!
Only integer numbers.

Not to worry, Bitcoin is never going to use floating-point arithmetic because rounding errors would screw up the total number of Bitcoins over time - cumulative error grows exponentially with number of operations. Integer-math guarantees that the number of satoshis in circulation will always balance correctly. Smiley

I'm not saying use floating point.. I was just using that as an example of doubling precision from float to double.

I'm saying increase the number of ZEROs allowed after the decimal point, whatever the number format. so 0.0000000000000001 would be a valid amount. There are still only only 21 million btc.

Life is Code.
Pages: « 1 [2]  All
  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!