📜  javascript代码示例中的处理映射

📅  最后修改于: 2022-03-11 15:01:53.997000             🧑  作者: Mango

代码示例1
// Please consider to go to the stackoverflow link and give the guy that answered an upvote
function map_range(value, low1, high1, low2, high2) {
    return low2 + (high2 - low2) * (value - low1) / (high1 - low1);
}