Lines Matching refs:RoundingMode
27 * @summary Basic tests for the RoundingMode class.
31 import java.math.RoundingMode;
40 for(RoundingMode rm: RoundingMode.values()) {
41 if (rm != RoundingMode.valueOf(rm.toString())) {
48 if (RoundingMode.valueOf(BigDecimal.ROUND_CEILING) !=
49 RoundingMode.CEILING) {
53 if (RoundingMode.valueOf(BigDecimal.ROUND_DOWN) !=
54 RoundingMode.DOWN) {
58 if (RoundingMode.valueOf(BigDecimal.ROUND_FLOOR) !=
59 RoundingMode.FLOOR) {
63 if (RoundingMode.valueOf(BigDecimal.ROUND_HALF_DOWN) !=
64 RoundingMode.HALF_DOWN) {
68 if (RoundingMode.valueOf(BigDecimal.ROUND_HALF_EVEN) !=
69 RoundingMode.HALF_EVEN) {
73 if (RoundingMode.valueOf(BigDecimal.ROUND_HALF_UP) !=
74 RoundingMode.HALF_UP) {
78 if (RoundingMode.valueOf(BigDecimal.ROUND_UNNECESSARY) !=
79 RoundingMode.UNNECESSARY) {