Comparing floating-point numbers
#2
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/
Reply
Thanks given by:


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



Users browsing this thread: 2 Guest(s)