#adding doubles doesnt give the expected outcome
1 messages · Page 1 of 1 (latest)
huh
oops i deleted the question
0.1+0.2==0.3
this is false because of how floatting points work
hmm
thats interesting
do i like round it again
to like 1 decimal point?
does that fix it
so either you don't use floating points, and try to find a way by manipulating ints or something else, or use BigDecimal which has unlimited precision, or, simplest solution, instead of using ==, you use >= and <= with a very small nterval