BigDecimal的add是累计加
时间: 2023-08-16 19:16:10 浏览: 91
是的,BigDecimal的add方法是用来进行累计加法的。你可以通过调用add方法来将一个BigDecimal对象与另一个BigDecimal对象相加,并返回一个新的BigDecimal对象,该对象包含了两个操作数的和。这样你就可以实现累计加法的功能。\[1\]
#### 引用[.reference_title]
- *1* [BigDecimal加减乘除运算、相关注意事项以及其他内容](https://blog.csdn.net/shareye1992/article/details/103390084)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [BigDecimal类add等加减乘除后的值没有发生改变,那些我使用BigDecimal遇到的坑](https://blog.csdn.net/drankness/article/details/121406403)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [BigDecimal累积增加(加等于),比较大小](https://blog.csdn.net/qq_41945220/article/details/82945627)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文