bigdecimal除以10000后
时间: 2023-10-24 07:26:53 浏览: 72
BigDecimal的计算
要将BigDecimal除以10000,你可以使用divide方法来实现。以下是一个示例代码:
BigDecimal num = new BigDecimal("10000");
BigDecimal result = yourBigDecimal.divide(num);
System.out.println(result);
这段代码将你的BigDecimal对象除以10000,并将结果存储在result变量中。然后通过打印输出来显示结果。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [BigDecimal精确运算](https://blog.csdn.net/xlf_yi/article/details/127864212)[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_1"}}] [.reference_item style="max-width: 50%"]
- *2* [BigDecimal](https://download.csdn.net/download/weixin_38733597/14033762)[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_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文