You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
isAlmostInt x =abs (x -fromInteger (round x)) < eps
55
-
where eps =1e-4--- REALLY sketchy : doubles are not precise enough to have a good eps (1e-10 or something close) so had to guess it and get 0.01 since 0.1 is too big and 0.0001 is too small
56
-
56
+
where
57
+
eps =1e-2--- REALLY sketchy : doubles are not precise enough to have a good eps (1e-10 or something close) so had to guess it and get 1e-2 since 1e-1 is too big and 1e-4 is too small
0 commit comments