BigDecimal类型
时间: 2023-09-11 07:11:21 浏览: 100
Can't find a codec for class java.math.BigDecimal.txt
BigDecimal是Java中的一个用于精确计算的数据类型。它可以处理十进制数,并且提供了各种计算方法。在Java中,BigDecimal有多个构造方法可以使用。
其中一个构造方法是public BigDecimal(int val),它可以将int类型的值转换为BigDecimal类型。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [BigDecimal类型详解](https://blog.csdn.net/qq_53946134/article/details/126218526)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [[十七]基础类型BigDecimal简介](https://blog.csdn.net/noteless/article/details/83663596)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文