Java tutorial
//package com.java2s; import java.math.BigDecimal; public class Main { public static Integer processCurreny(String value) { BigDecimal bd = new BigDecimal(value); bd.setScale(2, BigDecimal.ROUND_HALF_UP); bd = bd.multiply(new BigDecimal(100)); return bd.intValue(); } }