Method divide(BigDecimal divisor, int roundingMode)
Return type:
java.math.BigDecimal
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
this.output = this.inputA.divide(this.inputB, BigDecimal.ROUND_HALF_EVEN);
2
return sum.divide(new BigDecimal(rowCount), BigDecimal.ROUND_HALF_UP);
3
dr = ONE.divide(mr, BigDecimal.ROUND_HALF_UP);
4
return ((BigDecimal) a).divide(new BigDecimal(count),
5
.divide(BigDecimal.valueOf(100), BigDecimal.ROUND_HALF_DOWN));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.