MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1u5qqzl/double_bigdecimal_or_fixedpoint/orn1oak/?context=3
r/java • u/nfrankel • Jun 14 '26
28 comments sorted by
View all comments
Show parent comment
13
It’s gotta be longs. It’s surprisingly easy to hit rollover on 32-bit currency fields.
3 u/Winter-Appearance-14 Jun 14 '26 True depending on the application long is safer. In any case the truth is to always use integer operators.
3
True depending on the application long is safer. In any case the truth is to always use integer operators.
View all comments
Show parent comment
13
u/akl78 Jun 14 '26
It’s gotta be longs. It’s surprisingly easy to hit rollover on 32-bit currency fields.