Update math.md

pull/276/head
Yangshun Tay 3 years ago committed by GitHub
parent f5f9dfdaa6
commit 8a0924ab4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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) <= 10e-7` 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

Loading…
Cancel
Save