Ad
  • Custom User Avatar

    I think you shouldn't use double since is very tricky. You cannot compare the sum with 0.0 using '==' operator, since this is not integer arithmetics. If you make any conversion may be you get for example 0.000000000001 instead of 0.0; An alternative will be to make a comparison like this: (mov - 0.0) < 0.00 or use BigDecimal wich uses integer arithmetics.