range01 function

Transform a variable into the [0-1] range