首页 > stylus 如何保留n位小数?
比如 1/3 得到 0.333333333333我只想要0.33怎么保留两位小数呢?
floor(0.333333333333 * 100) / 100
这样可以实现,有没有别的方法呢?