Function to normalize any number from 0 – 1 August 18, 2023 by Tarik Why not just: (val, max, min) => (val - min) / (max - min);