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

Show parent comment

1

u/gregorydgraham Jun 15 '26

Huh. He reckons it’s bad for high frequency trading.

He also seemed to imply you should be using Moneta

Please note: I don’t use either, though I have been kicking myself for a while for using double instead of long when I did do some money stuff.

2

u/vips7L Jun 15 '26

As usual in programming: it depends. No hard rules ever.