我想创建一个功能层(数字,步骤),其行为如下:
floor(0, 1) = 0 floor(1, 1) = 1 floor(1, 2) = 0 floor(5, 2) = 4 floor(.8, .25) = .75
做这样的事情的更好方法是什么?
谢谢.
python algorithm math
algorithm ×1
math ×1
python ×1