Money Related Data - Do you Use Decimals or Integers?

So a big part of my app handles money and stripe payments, and I am debating with myself whether to do all my money related calculations and data storage as Decimal types or Integer types…

So as a decimal, 1.23€ would be 1.23, and as an Integer it would be 123 (as Stripe represents it).

I’d be interested to hear your views and experiences!

Best wishes,
Antony.

Community Page
Last updated: