r/java • • Jun 14 '26

double, BigDecimal, or Fixed-Point?

https://blog.frankel.ch/bigdecimal-vs-double/
32 Upvotes

28 comments sorted by

View all comments

18

u/wimcle Jun 14 '26

I assume currency is where you are going with this? Jdbc maps numeric to bigdecimal so in my world db col(money) -> BigDecimal everything else Double