Java tutorial
//package com.java2s; import java.math.BigDecimal; public class Main { public static Integer change2int(String price) { BigDecimal decimal = new BigDecimal(price); BigDecimal decimal1 = new BigDecimal(100); return decimal.multiply(decimal1).intValue(); } }