contents(algo): fix typo in math cheat sheet (#276)

* Fix typo in math cheat sheet

* Update math.md

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
This commit is contained in:
Jason Mustafa
2022-05-17 23:06:29 -04:00
committed by GitHub
parent a51384222b
commit c696505835

View File

@ -47,7 +47,7 @@ When a question involves "whether a number is a multiple of X", the modulo opera
### Comparing floats ### 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 ### Fast operators