Hacker News new | ask | show | jobs
by deevolution 2178 days ago
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