Hacker News new | ask | show | jobs
by peoplewindow 2977 days ago
That implies the balances are being represented as floats and turned directly into strings ... how does something that basic happen at all? Is Sabadell's Spanish web UI like that too? No wonder they're screwed
1 comments

> That implies the balances are being represented as floats ... how does something that basic happen at all?

Javascript only has floats. For the unwary this is a common source of bugs in frontends to financial systems.

Hopefully the backend is using some kind of decimal type.