四舍五入的BigDecimal

问题描述

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

解决方法

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

0