logoalt Hacker News

lxgrlast Saturday at 2:43 PM3 repliesview on HN

Big decimals are widely available and don’t require any expertise but avoid many of the footguns of implied decimal integers.


Replies

m00xlast Saturday at 8:06 PM

BigDecimal should be used by almost everyone except for HFT since they're really slow.

DetroitThrowyesterday at 7:07 PM

When performance isn't a concern, I largely agree! Not every financial system can use big decimal as their base, though, too. And HFT isn't the only place in the financial sector where this performance concern might pop up.

Maxatarlast Saturday at 8:05 PM

Imagine advising someone who explicitly said they work in HFT to use big decimals.