四舍五入的BigDecimal

时间:2020-10-23 09:12:45

标签: java rounding bigdecimal

我想对Bigdecimal进行四舍五入,例如我的0.1,则应四舍五入为1。 我尝试了Round_UP,所有舍入函数 请帮帮我

1 个答案:

答案 0 :(得分:1)

我想您使用了const paramUrl = new URL("http://dev.ffbvps.local/about/"); console.log(paramUrl.pathname)方法。相反,您应该将比例尺更改为round

0