Y
Hacker News
new
|
ask
|
show
|
jobs
by
tyre
2515 days ago
this isn't re-inventing the wheel. This is how money is safely represented because floating point math is inexact. You end up with cases where the transaction is off ±1¢ (at least)