4 ms·
Might just be me, but I always use integers. In calculations with multiplication, I always round immediately to integers again. I save financial data in cents
by boredpudding 4y ago
Might just be me, but I always use integers. In calculations with multiplication, I always round immediately to integers again.
I save financial data in cents (or whatever the lowest is), and only show it as a formatted number in templates. Stripe and other payment providers seem to do the same.
- fedeb95 4y agoHow do you handle divisions? Do you have any sources for what payment providers do? Genuinely interested.