by FabHK · 5mo ago · 0 comments
If you're doing static payments or displaying a number, it doesn't matter if it's float amounts or integer cents since you're not doing any calculations anyway.
Stripe uses cents mostly because it's the most foolproof way that won't cause massive issues as a public API.
You could argue that a price is not really an amount that anyone can actually pay and that's true. But it seems complex and error prone to store unit prices and amounts using different scaling factors.