截断数字
解决 1.983.toFixed(1) 为 2.0 的问题
需要截断的数字
截断的小数位数
截断后的数字字符串
truncateNumber(1.983, 1) // 1.9 Copy
truncateNumber(1.983, 1) // 1.9
截断数字