Maybe, you have to make sure range%stepSize=0[in your exp(800-100)%200 = 100] If it is not divisible, it will be counter-intuitive to the user, maybe you should consider whether to modify the product design