Answers for "How to get a range numbers from given numbers in javascript"

0

How to get a range numbers from given numbers in javascript

function scale (number, inMin, inMax, outMin, outMax) {
    return (number - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
}
Posted by: Guest on June-15-2021

Code answers related to "How to get a range numbers from given numbers in javascript"

Browse Popular Code Answers by Language