Reduce numerical value to 0-1 range

Is there a way to reduce numerical values to a 0-1 range automatically? The logic that I would like to use is: if(X>1,X-1, X) and loop this untill all values are within 0-1 range. The idea here is that these are the reparameterised values of inputs through which I need to evaluate a closed curve on different floor levels.
There must be a way to automise for any value, rather than the way I did it now.
Reparameterise (8.1 KB)

Not sure this is what you want, but when if you use Modulus,your result is identical.

1 Like