fork download
  1. import java.math.BigDecimal;
  2.  
  3. class Ideone
  4. {
  5. public static void main (String[] args)
  6. {
  7. int summa = 105;
  8. double d = new BigDecimal(summa).divide(new BigDecimal(100)).doubleValue();
  9. System.out.println(d);
  10. }
  11. }
Success #stdin #stdout 0.08s 33404KB
stdin
Standard input is empty
stdout
1.05