Converting a number from the range [a,b] to the range [c,d].
import { convertRange } from 'mz-math'; // convert the value 0.5 from the range [0,1] to the range [100,200] const res = convertRange(0.5, 0, 1, 100, 200); // 150