/libcore/ojluni/src/main/java/sun/misc/ |
D | FormattedFloatingDecimal.java | 35 public static FormattedFloatingDecimal valueOf(double d, int precision, Form form){ in valueOf() argument 38 return new FormattedFloatingDecimal(precision,form, fdConverter); in valueOf() 57 …private FormattedFloatingDecimal(int precision, Form form, FloatingDecimal.BinaryToASCIIConverter … in FormattedFloatingDecimal() argument 72 fillCompatible(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal() 75 exp = applyPrecision(decExp, digits, nDigits, decExp + precision); in FormattedFloatingDecimal() 76 fillDecimal(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal() 80 exp = applyPrecision(decExp, digits, nDigits, precision + 1); in FormattedFloatingDecimal() 81 fillScientific(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal() 85 exp = applyPrecision(decExp, digits, nDigits, precision); in FormattedFloatingDecimal() 88 if (exp - 1 < -4 || exp - 1 >= precision) { in FormattedFloatingDecimal() [all …]
|
/libcore/ojluni/src/main/java/java/math/ |
D | MathContext.java | 119 final int precision; field in MathContext 162 precision = setPrecision; in MathContext() 205 precision = setPrecision; in MathContext() 216 return precision; in getPrecision() 254 return mc.precision == this.precision in equals() 264 return this.precision + roundingMode.hashCode() * 59; in hashCode() 300 return "precision=" + precision + " " + in toString() 316 if (precision < MIN_DIGITS) { in readObject()
|
D | BigDecimal.java | 248 private transient int precision; field in BigDecimal 358 this.precision = prec; in BigDecimal() 507 int mcp = mc.precision; in BigDecimal() 570 int mcp = mc.precision; in BigDecimal() 604 this.precision = prec; in BigDecimal() 918 this.precision = 1; in BigDecimal() 942 int mcp = mc.precision; in BigDecimal() 975 this.precision = prec; in BigDecimal() 1040 int mcp = mc.precision; in BigDecimal() 1073 this.precision = prec; in BigDecimal() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | IllegalFormatPrecisionExceptionTest.java | 42 int precision = 12345; in test_getPrecision() local 44 precision); in test_getPrecision() 45 assertEquals(precision, illegalFormatPrecisionException.getPrecision()); in test_getPrecision() 52 int precision = 12345; in test_getMessage() local 54 precision); in test_getMessage()
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | FormattedFloatingDecimal.java | 32 int precision, in FormattedFloatingDecimal() argument 39 double d, int precision, sun.misc.FormattedFloatingDecimal.Form form) { in valueOf() argument 64 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillCompatible() argument 73 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillDecimal() argument 78 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillScientific() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigDecimalConstructorsTest.java | 101 int precision = 46; in testConstrBigIntegerMathContext() local 103 MathContext mc = new MathContext(precision, rm); in testConstrBigIntegerMathContext() 118 int precision = 46; in testConstrBigIntegerScaleMathContext() local 120 MathContext mc = new MathContext(precision, rm); in testConstrBigIntegerScaleMathContext() 175 int precision = 4; in testConstrCharIntIntMathContext() local 177 MathContext mc = new MathContext(precision, rm); in testConstrCharIntIntMathContext() 199 int precision = 4; in testConstrCharIntIntMathContextException1() local 201 MathContext mc = new MathContext(precision, rm); in testConstrCharIntIntMathContextException1() 216 int precision = 4; in testConstrCharIntIntMathContextException2() local 218 MathContext mc = new MathContext(precision, rm); in testConstrCharIntIntMathContextException2() [all …]
|
D | BigDecimalCompareTest.java | 62 int precision = 15; in testAbsMathContextNeg() local 64 MathContext mc = new MathContext(precision, rm); in testAbsMathContextNeg() 78 int precision = 41; in testAbsMathContextPos() local 80 MathContext mc = new MathContext(precision, rm); in testAbsMathContextPos() 373 int precision = 37; in testPlusMathContextPositive() local 375 MathContext mc = new MathContext(precision, rm); in testPlusMathContextPositive() 403 int precision = 46; in testPlusMathContextNegative() local 405 MathContext mc = new MathContext(precision, rm); in testPlusMathContextNegative() 433 int precision = 37; in testNegateMathContextPositive() local 435 MathContext mc = new MathContext(precision, rm); in testNegateMathContextPositive() [all …]
|
D | BigDecimalTest.java | 923 int precision = 6; in testMathContextConstruction() local 925 MathContext mcIntRm = new MathContext(precision, rm); in testMathContextConstruction() 927 MathContext mcInt = new MathContext(precision); in testMathContextConstruction()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalConstructorsTest.java | 37 int precision = 46; in testConstrBigIntegerMathContext() local 39 MathContext mc = new MathContext(precision, rm); in testConstrBigIntegerMathContext() 118 int precision = 46; in testConstrBigIntegerScaleMathContext() local 120 MathContext mc = new MathContext(precision, rm); in testConstrBigIntegerScaleMathContext() 281 int precision = 4; in testConstrCharIntIntMathContext() local 283 MathContext mc = new MathContext(precision, rm); in testConstrCharIntIntMathContext() 374 int precision = 4; in testConstrCharIntIntMathContextException1() local 376 MathContext mc = new MathContext(precision, rm); in testConstrCharIntIntMathContextException1() 434 int precision = 21; in testConstrDoubleMathContext() local 436 MathContext mc = new MathContext(precision, rm); in testConstrDoubleMathContext() [all …]
|
D | OldBigDecimalScaleOperationsTest.java | 89 x1.precision(); in testSetScale() 94 x2.precision(); in testSetScale()
|
D | BigDecimalTest.java | 60 expectedPrecision, parsed.precision()); in assertPrecision() 64 expectedPrecision, computed.precision()); in assertPrecision() 81 assertEquals(20, a.precision()); in testPrecisionFromString() 82 assertEquals(20, b.precision()); in testPrecisionFromString()
|
D | OldBigDecimalArithmeticTest.java | 50 assertEquals("Incorrect precision!", 33, res.precision()); in testAddMathContextNonTrivial() 65 assertEquals("Incorrect precision!", 17, res.precision()); in testSubtractMathContextNonTrivial() 73 assertEquals("Incorrect precision!", 33, res.precision()); in testSubtractMathContextNonTrivial() 90 assertEquals("Incorrect precision!", 17, res.precision()); in testMultiplyMathContextNonTrivial()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Formattable.java | 163 void formatTo(Formatter formatter, int flags, int width, int precision); in formatTo() argument
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | DerInputBuffer.java | 364 int precision = 0; in getTime() local 370 precision++; in getTime() 372 switch (precision) { in getTime() 389 len -= precision; in getTime()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalAccessor.java | 311 || query == TemporalQueries.precision()) { in query()
|
D | TemporalQueries.java | 243 public static TemporalQuery<TemporalUnit> precision() { in precision() method in TemporalQueries
|
/libcore/ojluni/src/main/java/javax/sql/ |
D | RowSetMetaData.java | 183 void setPrecision(int columnIndex, int precision) throws SQLException; in setPrecision() argument
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldFormatterTest.java | 32 …public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalForma… in test_Formattable() 41 …public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalForma… in test_Formattable()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | Era.java | 269 if (query == TemporalQueries.precision()) { in query()
|
D | ChronoLocalDate.java | 514 } else if (query == TemporalQueries.precision()) { in query()
|
D | ChronoLocalDateTime.java | 343 } else if (query == TemporalQueries.precision()) { in query()
|
D | ChronoZonedDateTime.java | 492 } else if (query == TemporalQueries.precision()) { in query()
|
/libcore/ojluni/src/main/java/java/time/ |
D | DayOfWeek.java | 407 if (query == TemporalQueries.precision()) { in query()
|
D | Month.java | 566 } else if (query == TemporalQueries.precision()) { in query()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 216 if (query == TemporalQueries.precision()) { in adjust()
|