const RoundNum = (num, decimal) => Math.round(num * 10 ** decimal) / 10 ** decimal; const num = RoundNum(1.2345, 2);
posted on 2022-05-09 11:14 smileTan 阅读(82) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 smileTan Powered by .NET 9.0 on Kubernetes