Does anyone know what on earth is going on here? This code is inside a JSP page but I guess that is academic - double f1 = 569.56; double f2 = 316.505; double f3 = f1 - f2; The result should be 253.055 but is coming out as 253.05499999999995 ............. Any advice appreciated before I go mad! Thanks.
Joined: Jul 13, 2001
Hi, There have been several threads on the same topics. See for example: