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.
Wilfried LAURENT
Ranch Hand
Joined: Jul 13, 2001
Posts: 269
posted
0
Hi, There have been several threads on the same topics. See for example: