Home
last modified time | relevance | path

Searched refs:toDouble (Results 1 - 25 of 61) sorted by relevance

123

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
H A DExhaustiveNumberTest.java173 new DecimalQuantity_DualStorageBCD(Double.NaN).toDouble()); in testConvertToAccurateDouble()
176 new DecimalQuantity_DualStorageBCD(Double.POSITIVE_INFINITY).toDouble()); in testConvertToAccurateDouble()
179 new DecimalQuantity_DualStorageBCD(Double.NEGATIVE_INFINITY).toDouble()); in testConvertToAccurateDouble()
202 .assertDoubleEquals(alert + "After conversion to exact BCD (double)", d, fq.toDouble()); in checkDoubleBehavior()
H A DDecimalQuantityTest.java268 q0.toDouble(), in testDecimalQuantityBehavior()
269 q1.toDouble()); in testDecimalQuantityBehavior()
517 double actual = q.toDouble(); in testToDouble()
534 assertEquals("Should trim, toDouble", 76.54, dq.toDouble()); in testMaxDigits()
686 double actualDouble = dq.toDouble(); in testCompactDecimalSuppressedExponent()
700 String.format("compact decimal %s toDouble: %f", skeleton, input), in testCompactDecimalSuppressedExponent()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
H A DExhaustiveNumberTest.java172 new DecimalQuantity_DualStorageBCD(Double.NaN).toDouble()); in testConvertToAccurateDouble()
175 new DecimalQuantity_DualStorageBCD(Double.POSITIVE_INFINITY).toDouble()); in testConvertToAccurateDouble()
178 new DecimalQuantity_DualStorageBCD(Double.NEGATIVE_INFINITY).toDouble()); in testConvertToAccurateDouble()
201 .assertDoubleEquals(alert + "After conversion to exact BCD (double)", d, fq.toDouble()); in checkDoubleBehavior()
H A DDecimalQuantityTest.java265 q0.toDouble(), in testDecimalQuantityBehavior()
266 q1.toDouble()); in testDecimalQuantityBehavior()
526 double actual = q.toDouble(); in testToDouble()
543 assertEquals("Should trim, toDouble", 76.54, dq.toDouble()); in testMaxDigits()
698 double actualDouble = dq.toDouble(); in testScientificAndCompactSuppressedExponent()
713 String.format("formatted number %s toDouble: %f", skeleton, input), in testScientificAndCompactSuppressedExponent()
/third_party/icu/icu4c/source/test/intltest/
H A Dnumbertest_decimalquantity.cpp81 d, fq.toDouble());
285 assertDoubleEquals(u"NaN check failed", NAN, DecimalQuantity().setToDouble(NAN).toDouble());
287 u"Inf check failed", INFINITY, DecimalQuantity().setToDouble(INFINITY).toDouble());
289 u"-Inf check failed", -INFINITY, DecimalQuantity().setToDouble(-INFINITY).toDouble());
417 double actual = q.toDouble();
435 assertEquals("Should trim, toDouble", 76.54, dq.toDouble());
597 double actualDouble = dq.toDouble();
611 u"formatted number " + cas.skeleton + u" toDouble: " + cas.input,
H A Dunits_test.cpp116 double expectedNumerator = dqVal.toDouble(); in testUnitConstantFreshness()
821 _amounts[_compoundCount] = dqOutputD.toDouble(); in parseOutputField()
934 double inputAmount = dqInputD.toDouble(); in unitPreferencesTestDataLineFn()
/third_party/icu/icu4c/source/i18n/
H A Dnumber_usageprefs.cpp167 quantity.roundToInfinity(); // Enables toDouble in processQuantity()
168 const units::RouteResult routed = fUnitsRouter.route(quantity.toDouble(), &micros.rounder, status); in processQuantity()
203 quantity.roundToInfinity(); // Enables toDouble in processQuantity()
205 fUnitConverter->convert(quantity.toDouble(), &micros.rounder, status); in processQuantity()
H A Dnumparse_parsednumber.cpp84 return quantity.toDouble(); in getDouble()
H A Dplurrule.cpp412 double dblValue = dq.toDouble(); in getSamplesFromString()
426 if (rangeHi.toDouble() < rangeLo.toDouble()) { in getSamplesFromString()
437 double incrementVal = incrementDq.toDouble(); // 10 ^ incrementScale in getSamplesFromString()
441 double dblValue = dq.toDouble(); in getSamplesFromString()
442 double end = rangeHi.toDouble(); in getSamplesFromString()
475 dblValue = newDq.toDouble(); in getSamplesFromString()
1701 double n = dl.toDouble(); in FixedDecimal()
H A Dnumber_decimalquantity.h225 double toDouble() const;
H A Dunits_complexconverter.cpp243 quantity = decimalQuantity.toDouble(); in applyRounder()
/third_party/node/deps/icu-small/source/i18n/
H A Dnumber_usageprefs.cpp169 quantity.roundToInfinity(); // Enables toDouble in processQuantity()
170 const units::RouteResult routed = fUnitsRouter.route(quantity.toDouble(), &micros.rounder, status); in processQuantity()
205 quantity.roundToInfinity(); // Enables toDouble in processQuantity()
207 fUnitConverter->convert(quantity.toDouble(), &micros.rounder, status); in processQuantity()
H A Dnumparse_parsednumber.cpp84 return quantity.toDouble(); in getDouble()
H A Dplurrule.cpp416 double dblValue = dq.toDouble(); in getSamplesFromString()
430 if (rangeHi.toDouble() < rangeLo.toDouble()) { in getSamplesFromString()
441 double incrementVal = incrementDq.toDouble(); // 10 ^ incrementScale in getSamplesFromString()
445 double dblValue = dq.toDouble(); in getSamplesFromString()
446 double end = rangeHi.toDouble(); in getSamplesFromString()
479 dblValue = newDq.toDouble(); in getSamplesFromString()
1705 double n = dl.toDouble(); in FixedDecimal()
H A Dnumber_decimalquantity.h225 double toDouble() const;
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dnumber_usageprefs.cpp167 quantity.roundToInfinity(); // Enables toDouble in processQuantity()
168 const units::RouteResult routed = fUnitsRouter.route(quantity.toDouble(), &micros.rounder, status); in processQuantity()
203 quantity.roundToInfinity(); // Enables toDouble in processQuantity()
205 fUnitConverter->convert(quantity.toDouble(), &micros.rounder, status); in processQuantity()
H A Dnumparse_parsednumber.cpp84 return quantity.toDouble(); in getDouble()
H A Dnumber_decimalquantity.h209 double toDouble() const;
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
H A DDecimalQuantity.java171 public double toDouble(); in toDouble() method
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
H A DDecimalQuantity.java168 public double toDouble(); in toDouble() method
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
H A DDecimalQuantity_SimpleStorage.java577 public double toDouble() { in toDouble() method in DecimalQuantity_SimpleStorage
612 String ruleString = rules.select(toDouble()); in getStandardPlural()
620 return new PluralRules.FixedDecimal(toDouble()).getPluralOperand(operand); in getPluralOperand()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/impl/number/
H A DDecimalQuantity_SimpleStorage.java570 public double toDouble() { in toDouble() method in DecimalQuantity_SimpleStorage
605 String ruleString = rules.select(toDouble()); in getStandardPlural()
613 return new PluralRules.FixedDecimal(toDouble()).getPluralOperand(operand); in getPluralOperand()
/third_party/node/src/inspector/
H A Dnode_string.h62 double toDouble(const char* buffer, size_t length, bool* ok);
H A Dnode_string.cc92 double toDouble(const char* buffer, size_t length, bool* ok) { in toDouble() function
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DPluralRules.java1277 for (DecimalQuantity dq = start.createCopy(); dq.toDouble() <= end.toDouble(); ) { in addSamples()
1279 double dblValue = dq.toDouble(); in addSamples()
2303 return uniqValDq.toDouble(); in getUniqueKeywordValue()
2340 result.add(dq.toDouble()); in getAllKeywordValues()
2434 result.add(dq.toDouble()); in getSamples()

Completed in 24 milliseconds

123