I write currency trading applications for living, so I have to work with monetary values (it\'s a shame that Java still doesn\'t have decimal float type and has nothing to s
easy... round your results often will eliminate double data type's error.
if you are doing balance calculation, you have to also consider who will own the more/less penny caused by rounding.