I have got a Problem, I am developing an Application which should be able to do some mathematic calculations. These calculations have to be exact (or rather not obviously wrong)
What you need to use for exact percision is the BigDecimal object:
BigDecimal a = new BigDecimal("3.048"); BigDecimal b = new BigDecimal(1000); BigDecimal c = a.divide(b); System.out.println(c); //0.003048