Field ROUND_HALF_UP
Field type: int
Member of: java.math.BigDecimal
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 return num.setScale(numFractionalDigits, BigDecimal.ROUND_HALF_UP);
2 new BigDecimal(0.0825).setScale(4, BigDecimal.ROUND_HALF_UP);
3 Discount = Discount.setScale(2, BigDecimal.ROUND_HALF_UP);
4 return value.setScale(2, BigDecimal.ROUND_HALF_UP);
5 .divide(list, 2, BigDecimal.ROUND_HALF_UP);
6 bd = bd.setScale(scale, BigDecimal.ROUND_HALF_UP);
7 return sum.divide(new BigDecimal(rowCount), BigDecimal.ROUND_HALF_UP);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.