我有一堆花车,我想把它们整理到10的下一个最高倍数.
例如:
10.2 should be 20 10.0 should be 10 16.7 should be 20 94.9 should be 100
我只需要它从0-100的范围.我尝试了math.ceil(),但只能舍入到最接近的整数.
提前致谢.
python math
math ×1
python ×1