标签: java rounding bigdecimal
我想对Bigdecimal进行四舍五入,例如我的0.1,则应四舍五入为1。 我尝试了Round_UP,所有舍入函数 请帮帮我
答案 0 :(得分:1)
我想您使用了const paramUrl = new URL("http://dev.ffbvps.local/about/"); console.log(paramUrl.pathname)方法。相反,您应该将比例尺更改为round。
const paramUrl = new URL("http://dev.ffbvps.local/about/"); console.log(paramUrl.pathname)
round
0