Thats just IEEE floating point. Which is why for the server we use "var1 - var2 < x" where x is something like 0.0001 for equality.
http://floating-point-gui.de/errors/comparison/
http://floating-point-gui.de/errors/comparison/
Comparing floating-point numbers
|
Thats just IEEE floating point. Which is why for the server we use "var1 - var2 < x" where x is something like 0.0001 for equality.
http://floating-point-gui.de/errors/comparison/ |
« Next Oldest | Next Newest »
|
Messages In This Thread |
Comparing floating-point numbers - by DrMasik - 12-20-2015, 10:08 AM
RE: Lua. Copare float point numbers - by worktycho - 12-20-2015, 10:59 AM
RE: Comparing floating-point numbers - by DrMasik - 12-20-2015, 09:48 PM
RE: Comparing floating-point numbers - by jan64 - 12-20-2015, 10:13 PM
RE: Comparing floating-point numbers - by DrMasik - 12-20-2015, 10:48 PM
RE: Comparing floating-point numbers - by jan64 - 12-21-2015, 07:11 AM
|