d = 3 (slider from 0 to 5, step 0.1)
f(x) = x - floor(x / d) * d