Home
last modified time | relevance | path

Searched refs:getPrecision (Results 1 – 10 of 10) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DIllegalFormatPrecisionExceptionTest.java35 .getPrecision()); in test_illegalFormatPrecisionException()
45 assertEquals(precision, illegalFormatPrecisionException.getPrecision()); in test_getPrecision()
70 assertEquals("Precision", initEx.getPrecision(), desrEx
71 .getPrecision());
/libcore/luni/src/test/java/libcore/java/math/
DMathContextTest.java27 assertEquals(1, mc.getPrecision()); in testConstructor()
34 assertEquals(p, mc.getPrecision()); in testConstructor()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DMathContextTest.java39 6, mcIntRm6hd.getPrecision() ); in test_MathContextConstruction()
41 134, mcInt134.getPrecision() ); in test_MathContextConstruction()
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetMetaDataTest.java298 assertEquals(precicisionReal, rsmd2.getPrecision(4)); in testGetPrecision()
299 assertEquals(precisionNum,rsmd2.getPrecision(3)); in testGetPrecision()
300 assertTrue(rsmd2.getPrecision(2) > 0); in testGetPrecision()
301 assertTrue(rsmd2.getPrecision(1) > 0); in testGetPrecision()
305 rsmd.getPrecision(3); in testGetPrecision()
313 rsmd.getPrecision(0); in testGetPrecision()
319 rsmd.getPrecision(5); in testGetPrecision()
327 rsmd.getPrecision(1); in testGetPrecision()
/libcore/luni/src/main/java/java/util/
DIllegalFormatPrecisionException.java47 public int getPrecision() { in getPrecision() method in IllegalFormatPrecisionException
DFormatter.java1182 int getPrecision() { in getPrecision() method in Formatter.FormatToken
1577 formatToken.getPrecision()); in transformFromString()
1615 int precision = formatToken.getPrecision(); in padding()
2111 final int precision = formatToken.getPrecision(); in transformE()
2144 int precision = formatToken.getPrecision(); in transformG()
2161 precision = formatToken.getPrecision(); in transformG()
2177 if (String.valueOf(l).length() <= formatToken.getPrecision()) { in transformG()
2188 if (String.valueOf(l).length() <= formatToken.getPrecision()) { in transformG()
2198 precision = formatToken.getPrecision(); in transformG()
2210 final int precision = formatToken.getPrecision();
[all …]
/libcore/luni/src/main/java/java/math/
DMathContext.java165 public int getPrecision() { in getPrecision() method in MathContext
201 && (((MathContext) x).getPrecision() == precision) && (((MathContext) x) in equals()
DBigDecimal.java793 || (mc.getPrecision() == 0)) { in add()
806 if (mc.getPrecision() >= larger.approxPrecision()) { in add()
896 || (mc.getPrecision() == 0)) { in subtract()
902 if (mc.getPrecision() < this.approxPrecision()) { in subtract()
1275 long trailingZeros = mc.getPrecision() + 2L in divide()
1285 if ((mc.getPrecision() == 0) || (this.isZero()) in divide()
1412 int mcPrecision = mc.getPrecision(); in divideToIntegralValue()
1638 int mcPrecision = mc.getPrecision(); in pow()
2659 int mcPrecision = mc.getPrecision(); in inplaceRound()
2733 if (Math.log10(Math.abs(integer)) >= mc.getPrecision()) { in smallRound()
[all …]
/libcore/luni/src/main/java/java/sql/
DParameterMetaData.java143 public int getPrecision(int paramIndex) throws SQLException; in getPrecision() method
DResultSetMetaData.java140 public int getPrecision(int column) throws SQLException; in getPrecision() method