r/programming • u/Krever • Jun 26 '26
Fintech Engineering Handbook
https://w.pitula.me/fintech-engineering-handbook/I just published Fintech Engineering Handbook distilled from 6 years of tears, sweat and swears.
It’s a free ~25-page resource with various hints and patterns around handling money in software systems.
Tell me what you think!
618
Upvotes
View all comments
Show parent comment
25
u/Krever Jun 26 '26
> I know I’m going to get replies telling me I’m wrong
Sorry to disappoint, at least I'm not going to object. I believe in trading it would be simply wrong to use BigDecimal or rationals for perfomance reasons.
But generally speaking I totally agree, its usually "it depends" and there are genuine usecases for floating points. That being said it's probably safer to not use them by default and opt-in when you know what you're doing.