String amountstr="100"; long c= new BigDecimal(Double.parseDouble(amountstr)*100).longValue(); System.out.println(c);