upvote
Why not store them in unary then?
reply
Unary is exactly as expressive as decimal or binary for integers, but somewhat less efficient, so why would you?
reply
idk, why would you store integers as ASCII strings? It's somewhat less efficient.
reply
Because it's much more explicit. Computers are fast, engineering is expensive. You usually never want to optimize prematurely when dealing with monetary amounts.
reply