Here you can find the source of milliToCent(BigDecimal val)
public static String milliToCent(BigDecimal val)
//package com.java2s; import java.math.BigDecimal; public class Main { public static String milliToCent(BigDecimal val) { return val.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_HALF_UP).toPlainString(); }/*from ww w.ja v a2 s . c o m*/ }