mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-27 20:22:33 +08:00
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:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user