From c69650583507faef2c963f7d92a92a57b1f0076c Mon Sep 17 00:00:00 2001 From: Jason Mustafa <41012240+jasonmustafa@users.noreply.github.com> Date: Tue, 17 May 2022 23:06:29 -0400 Subject: [PATCH] contents(algo): fix typo in math cheat sheet (#276) * Fix typo in math cheat sheet * Update math.md Co-authored-by: Yangshun Tay --- 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..780c8cef 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) <= 1e-6` instead of `x == y`. ### Fast operators