To do calculations that require decimal precision you should not use floating point calculations. agrahm's BigNumbers library is the answer to this problem. It's not a display issue it's calculation issue.
In most cases BigNumber calculations are not necessaray, Double calculations are enough.
But the display is anoying, therefore the suggestion to use NumberFormat.