Searched refs:mcfd (Results 1 - 2 of 2) sorted by relevance
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bigdec/ |
H A D | DiagBigDecimalTest.java | 123 private static final android.icu.math.MathContext mcfd = new android.icu.math.MathContext(0, android.icu.math.MathContext.PLAIN); // fixed decimal style field in class:DiagBigDecimalTest 728 // mcfd =MathContext(0, PLAIN) 737 TestFmwk.assertTrue("cuc038", (mcfd.getDigits()) == 0); 738 TestFmwk.assertTrue("cuc039", (mcfd.getForm()) == android.icu.math.MathContext.PLAIN); 739 TestFmwk.assertTrue("cuc040", (mcfd.getLostDigits() ? 1 : 0) == 0); 740 TestFmwk.assertTrue("cuc041", (mcfd.getRoundingMode()) == android.icu.math.MathContext.ROUND_HALF_UP); 919 TestFmwk.assertTrue("add070", ((new android.icu.math.BigDecimal("10000e+9")).add(new android.icu.math.BigDecimal("70000"),mcfd).toString()).equals("10000000070000")); 1001 TestFmwk.assertTrue("add161", ((new android.icu.math.BigDecimal("7E+12")).add(new android.icu.math.BigDecimal("-1"),mcfd).toString()).equals("6999999999999")); 1003 TestFmwk.assertTrue("add162", ((new android.icu.math.BigDecimal("7E+12")).add(new android.icu.math.BigDecimal("1.11"),mcfd).toString()).equals("7000000000001.11")); 1005 TestFmwk.assertTrue("add163", ((new android.icu.math.BigDecimal("1.11")).add(new android.icu.math.BigDecimal("7E+12"),mcfd) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/ |
H A D | DiagBigDecimalTest.java | 120 private static final com.ibm.icu.math.MathContext mcfd = new com.ibm.icu.math.MathContext(0, com.ibm.icu.math.MathContext.PLAIN); // fixed decimal style field in class:DiagBigDecimalTest 725 // mcfd =MathContext(0, PLAIN) 734 TestFmwk.assertTrue("cuc038", (mcfd.getDigits()) == 0); 735 TestFmwk.assertTrue("cuc039", (mcfd.getForm()) == com.ibm.icu.math.MathContext.PLAIN); 736 TestFmwk.assertTrue("cuc040", (mcfd.getLostDigits() ? 1 : 0) == 0); 737 TestFmwk.assertTrue("cuc041", (mcfd.getRoundingMode()) == com.ibm.icu.math.MathContext.ROUND_HALF_UP); 916 TestFmwk.assertTrue("add070", ((new com.ibm.icu.math.BigDecimal("10000e+9")).add(new com.ibm.icu.math.BigDecimal("70000"),mcfd).toString()).equals("10000000070000")); 998 TestFmwk.assertTrue("add161", ((new com.ibm.icu.math.BigDecimal("7E+12")).add(new com.ibm.icu.math.BigDecimal("-1"),mcfd).toString()).equals("6999999999999")); 1000 TestFmwk.assertTrue("add162", ((new com.ibm.icu.math.BigDecimal("7E+12")).add(new com.ibm.icu.math.BigDecimal("1.11"),mcfd).toString()).equals("7000000000001.11")); 1002 TestFmwk.assertTrue("add163", ((new com.ibm.icu.math.BigDecimal("1.11")).add(new com.ibm.icu.math.BigDecimal("7E+12"),mcfd) [all...] |
Completed in 100 milliseconds