As a first timer in Math StackExchange and as someone who really has very little Maths background, my apologies in advance if my question does not make sense or does not fall in Maths domain. But if it does I will appreciate for the help.
My specific problem is that I would want to get a function that would convert the maximum and minimum values into a range of 0 and 1. More specifically is that I have multiple strings in form of lists and I would want to identify differences in length between the string with maximum length and the string with minimum length. Of course when the strings are of equal lengths the difference would be zero. But when the strings are of different lengths mere subtraction would not give me what I want as I would want to limit the largest difference to 1 (as some kind of a highest ratio?).
Thanks.