double, BigDecimal, or Fixed-Point?

There is an evergreen debate in the Java world: should you always use BigDecimal for money? The short answer is no. The real answer is: it depends on your computational context: the precision you need, the rounding rules you must follow, and the performance budget you have. The problem is that this conversation is often driven by dogma rather than engineering.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论