From f5f9dfdaa6e39b9483dfafc6bfb79fff2bf57521 Mon Sep 17 00:00:00 2001 From: Jason Mustafa Date: Tue, 17 May 2022 21:51:38 -0400 Subject: [PATCH] Fix typo in math cheat sheet --- contents/algorithms/math.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contents/algorithms/math.md b/contents/algorithms/math.md index 240fc6d4..bd17015e 100644 --- a/contents/algorithms/math.md +++ b/contents/algorithms/math.md @@ -47,7 +47,7 @@ When a question involves "whether a number is a multiple of X", the modulo opera ### Comparing floats -When dealing with floating point numbers, take note of rounding mistakes. Consider using epsilon comparisons instead of equality checks. E.g. `abs(x - y) <= 10e7` instead of `x == y`. +When dealing with floating point numbers, take note of rounding mistakes. Consider using epsilon comparisons instead of equality checks. E.g. `abs(x - y) <= 10e-7` instead of `x == y`. ### Fast operators