From 56d4b4ddca47d6fa7ccc807fb94c55dba001a7e9 Mon Sep 17 00:00:00 2001 From: Yusof Bandar Date: Fri, 22 Feb 2019 23:19:17 +0000 Subject: [PATCH] Update mapNumRange.md --- mapNumRange.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapNumRange.md b/mapNumRange.md index 5b90907e0..37661778a 100644 --- a/mapNumRange.md +++ b/mapNumRange.md @@ -2,7 +2,7 @@ Maps a number from one range to another range. -Returns `num` mapped between `out_min` to `out_max` from `in_min` to `in_max` +Returns `num` mapped between `out_min`-`out_max` from `in_min`-`in_max` ```js const distance = (num, in_min, in_max, out_min, out_max) => (num - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; ```