- round(2.86) //四舍五入 返回 3
- ceil(2.3) //向上取整 返回 3
- floor(2.6) //向下取整 返回 2);
- percentage(0.6) //转为百分比 返回60%
less模块——math函数
猜你喜欢
转载自blog.csdn.net/yuhui01/article/details/80947995
今日推荐
周排行