3 ms·
Are bitcoins Ints or Floats? If so at 19$ per coin the currency can only be used for larger purchases.
by acomjean 14y ago
Are bitcoins Ints or Floats? If so at 19$ per coin the currency can only be used for larger purchases.
- mcantelon 14y agoFloats. You can pay with any fraction of a Bitcoin AFAIK.
- gigq 14y agoBitcoin transactions can go down to 0.00000001 BTC. They aren't however stored as floats due to rounding errors this can introduce (https://bitcointalk.org/index.php?topic=13837.0 https://bitcointalk.org/index.php?topic=13837.0).
- wmf 14y agoIntegers. BTC is only used for display; everything is actually computed in terms of Satoshis (1 BTC = 10^8 Satoshis). Thus very small transactions are possible.
- gbaygon 14y agoBitcoins values are stored in 64-bit integers, with 1 BTC stored as 100,000,000 which gives plenty of room to fractionalize, since it's stored as if it where a double-precision number.