Articles tagged Integer arithmetic
One article tagged Integer arithmetic, newest first, on technology, money and the internet.
- Engineering4 min read
Crypto amounts are integers: 1 ETH is 1000000000000000000 wei
A balance of 1 ETH is not 1.0 — it is 1000000000000000000 wei, an exact whole number. Every protocol that matters works this way, and the bugs appear the moment a decimal point gets involved. Why the integer representation exists and what breaks without it.