Java BigDecimal milliToCent(BigDecimal val)

Here you can find the source of milliToCent(BigDecimal val)

Description

milli To Cent

License

Open Source License

Declaration

public static String milliToCent(BigDecimal val) 

Method Source Code


//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*/
}

Related

  1. jsonNumberToBigDecimal(final JsonNumber n, final int defaultValue)
  2. limitScale(BigDecimal value, int scale)
  3. matchScale(BigDecimal[] val)
  4. mean(List numbers, MathContext context)
  5. median(final BigDecimal[] bigDecimalNumbers)
  6. milliToDollar(BigDecimal val)
  7. mod(long res, BigDecimal value)
  8. movePoint(final BigDecimal v1, final int shift)
  9. moveRight(BigDecimal value, int offset)