bigdecimal的数为0.01
时间: 2023-09-23 19:06:36 浏览: 94
bigdecimal
BigDecimal的数为0.01可以通过多种方式表示。可以使用BigDecimal的字符串构造函数如下所示:BigDecimal n1 = new BigDecimal("0.01"); [1也可以使用valueOf方法如下所示:BigDecimal b = BigDecimal.valueOf(0.01); [2无论使用哪种方式,最终得到的BigDecimal数都是0.01。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [BigDecimal 加减乘除运算](https://blog.csdn.net/qq_14926283/article/details/121605714)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Java中的BigDecimal](https://blog.csdn.net/D_A_I_H_A_O/article/details/127574714)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文