摘要: 默认会四舍五入 比如:%0.2f 会四舍五入后,保留小数点后2位 Lua保留一位小数 lua nNum 源数字 n 小数位数 function Tool. GetPreciseDecimal(nNum, n) if type(nNum) ~= "number" then return nNum; e 阅读全文
posted @ 2018-05-11 20:37 赵青青 阅读(22124) 评论(0) 推荐(1)