Java BigDecimal scaleCurrency(BigDecimal amount)

Here you can find the source of scaleCurrency(BigDecimal amount)

Description

scale Currency

License

Apache License

Declaration

protected static BigDecimal scaleCurrency(BigDecimal amount) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;

public class Main {
    protected static BigDecimal scaleCurrency(BigDecimal amount) {
        return amount.setScale(2, BigDecimal.ROUND_HALF_UP);
    }/*from w w w.  ja va2 s. co m*/
}

Related

  1. safeNull(BigDecimal value)
  2. safeToBigDecimal(Object obj1)
  3. scalarMult(BigDecimal scalar, Vector a)
  4. scale(BigDecimal b1, BigDecimal b2)
  5. scale2(BigDecimal valor)
  6. seconds(BigDecimal bd)
  7. secondsBigDecimalFromDuration(long s, int n)
  8. signum(final BigDecimal value)
  9. sine(BigDecimal x)