No dependency on countSteps in math/floor
No dependency on math/floor in math/ceil - simplifies
No ternary in math/clamp - simplifies