Appearance
@ryanuo/utils / finance / roundTo
function roundTo(num, decimalPlaces?): Decimal;
四舍五入(银行家舍入法)
string | number | Decimal
string
number
Decimal
数字或Decimal实例
number = 2
2
保留小数位数