/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | DecimalQuantityTest.java | 419 assertTrue("Zero should fit", quantity.fitsInLong()); in testFitsInLong() 421 assertTrue("Small int should fit", quantity.fitsInLong()); in testFitsInLong() 423 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong() 425 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong() 427 assertTrue("Large low-precision int should fit", quantity.fitsInLong()); in testFitsInLong() 429 assertTrue("10^19 should fit", quantity.fitsInLong()); in testFitsInLong() 431 assertTrue("A number between 10^19 and max long should fit", quantity.fitsInLong()); in testFitsInLong() 433 … assertTrue("A number with trailing zeros less than max long should fit", quantity.fitsInLong()); in testFitsInLong() 436 quantity.fitsInLong()); in testFitsInLong() 438 assertTrue("One less than max long should fit", quantity.fitsInLong()); in testFitsInLong() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | DecimalQuantityTest.java | 416 assertTrue("Zero should fit", quantity.fitsInLong()); in testFitsInLong() 418 assertTrue("Small int should fit", quantity.fitsInLong()); in testFitsInLong() 420 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong() 422 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong() 424 assertTrue("Large low-precision int should fit", quantity.fitsInLong()); in testFitsInLong() 426 assertTrue("10^19 should fit", quantity.fitsInLong()); in testFitsInLong() 428 assertTrue("A number between 10^19 and max long should fit", quantity.fitsInLong()); in testFitsInLong() 430 … assertTrue("A number with trailing zeros less than max long should fit", quantity.fitsInLong()); in testFitsInLong() 433 quantity.fitsInLong()); in testFitsInLong() 435 assertTrue("One less than max long should fit", quantity.fitsInLong()); in testFitsInLong() [all …]
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | LongMathTest.java | 108 assertTrue(fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k], k))); in testConstantsBiggestBinomials() 110 || !fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k] + 1, k))); in testConstantsBiggestBinomials() 115 assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k))); in testConstantsBiggestBinomials() 144 if (fitsInLong(difference)) { in testLessThanBranchFree() 480 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedAdd() 496 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedSubtract() 512 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedMultiply() 528 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedPow() 544 long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE; in testFactorial() 564 long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE; in testBinomial() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/ |
D | LongMathTest.java | 48 if (fitsInLong(difference)) { in testLessThanBranchFree() 126 long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE; in testBinomial() 193 private static boolean fitsInLong(BigInteger big) { in fitsInLong() method in LongMathTest
|
/external/guava/guava/src/com/google/common/math/ |
D | BigIntegerMath.java | 131 if (fitsInLong(x)) { in log10() 209 if (fitsInLong(x)) { in sqrt() 449 static boolean fitsInLong(BigInteger x) { in fitsInLong() method in BigIntegerMath
|
/external/icu/icu4c/source/i18n/ |
D | numparse_parsednumber.cpp | 77 if (quantity.fitsInLong()) { in getDouble()
|
D | number_decimalquantity.h | 158 bool fitsInLong(bool ignoreFraction = false) const;
|
D | fmtable.cpp | 466 if (fDecimalQuantity->fitsInLong(true)) { in getInt64() 783 if (fDecimalQuantity->fitsInLong()) { in adoptDecimalQuantity()
|
D | rbnf.cpp | 1122 if (copy.fitsInLong()) { in format() 1127 if (copy.fitsInLong()) { in format() 1161 if (copy.fitsInLong()) { in format() 1166 if (copy.fitsInLong()) { in format()
|
D | numparse_decimal.cpp | 363 if (digitsConsumed.fitsInLong()) { in match()
|
D | number_decimalquantity.cpp | 536 bool DecimalQuantity::fitsInLong(bool ignoreFraction) const { in fitsInLong() function in DecimalQuantity
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/ |
D | ParsedNumber.java | 162 if (quantity.fitsInLong() && !forceBigDecimal) { in getNumber()
|
D | DecimalMatcher.java | 382 if (digitsConsumed.fitsInLong()) { in match()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
D | ParsedNumber.java | 160 if (quantity.fitsInLong() && !forceBigDecimal) { in getNumber()
|
D | DecimalMatcher.java | 380 if (digitsConsumed.fitsInLong()) { in match()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | DecimalQuantity_AbstractBCD.java | 584 assert(truncateIfOverflow || fitsInLong()); in toLong() 629 public boolean fitsInLong() { in fitsInLong() method in DecimalQuantity_AbstractBCD
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | DecimalQuantity_AbstractBCD.java | 582 assert(truncateIfOverflow || fitsInLong()); in toLong() 627 public boolean fitsInLong() { in fitsInLong() method in DecimalQuantity_AbstractBCD
|
/external/icu/icu4c/source/test/intltest/ |
D | numfmtdatadriventest.cpp | 272 if (!uprv_isNaN(doubleVal) && !uprv_isInfinite(doubleVal) && digitList.fitsInLong()) { in isFormatPass()
|