Why 0.1 + 0.2 ≠ 0.3 ....?
Computers are incredible at math… except when they aren’t.If you've ever seen something like this:
0.1 + 0.2 // 0.30000000000000004
you’ve witnessed a floating-point precision error.
Why does this happen?Why can’t computers represent simple numbers...
darsh-patel.hashnode.dev5 min read