Why the addition or subtraction of Floating point is so different in Python. for eg:- 0.1 + 0.2 - 0.3 would give a result of 5.55111512313e-17 or 1.1 + 2.2 would give a result like 3.3000000000000003
I'm looking to cross-platform library that can convert a 32-bit floating point numbers to 16-bit. I really need to decrease the size of the 32-bit floats so I can send him over a network. I'm using C++. I understand how much precision I will be losing but I need to do it. Any help would be greatly...