News for hackers. Stuff that matters.
Re:Wirecard files for insolvency after financial hole laid bare by billman on Thursday June 25, 2020 @08:44AM (#23640010)
Just curious, how would you manage bitcoin fractional shares.
Re:Wirecard files for insolvency after financial hole laid bare by deevolution on Thursday June 25, 2020 @09:08AM (#23640262)
Bitcoins are represented as integers. A whole Bitcoin is 100MM satoshis.

Typedef int64_t CAmount;

Static const CAmount COIN = 100000000;

Static const CAmount MAX_MONEY = 21000000 * COIN;

https://github.com/bitcoin/bitcoin/tree/master/src/amount.h

Re:Wirecard files for insolvency after financial hole laid bare by gruez on Thursday June 25, 2020 @09:00AM (#23640176)
Why would you need fractional bitcoin shares? The smallest unit of bitcoin isn't 1 bitcoin (like with stocks), it's 1 satoshi or 0.00000001 bitcoin.
Re:Wirecard files for insolvency after financial hole laid bare by granitepail on Thursday June 25, 2020 @08:49AM (#23640065)
Arbitrary precision arithmetic.