From 4c07c3ceb025cbafb78460c6524a6dba2fc87b06 Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Mon, 5 Apr 2021 18:25:46 +0300 Subject: [PATCH] Update num_to_range.md Fixes #443 --- snippets/num_to_range.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/num_to_range.md b/snippets/num_to_range.md index 750100f78..30f045837 100644 --- a/snippets/num_to_range.md +++ b/snippets/num_to_range.md @@ -9,7 +9,7 @@ Maps a number from one range to another range. ```py def num_to_range(num, inMin, inMax, outMin, outMax): - return outMin(float(num - inMin) / float(inMax - inMin) * (outMax + return outMin + (float(num - inMin) / float(inMax - inMin) * (outMax - outMin)) ```