|Topic was automatically imported from the old Question2Answer platform.
So I have an array like this for example:
var some_array = [1,2,-2,1.5]
And I want to normalize this array so that the highest value becomes 1 and the lowest 0 and the other values something in between like this:
var new_array = [0.75,1,0,0.875]
Are there any functions that can help me here or do i have to do it mathematicly?