我需要将浮动比率转换为等效的整数
0.5:1 ---应转换为---> 1:2
0.5:0.6:1 ---应转换为---> 5:6:10(最小整数比)
我的谷歌搜索在这方面没有任何结果
python math
math ×1
python ×1