Home
last modified time | relevance | path

Searched refs:toScientificString (Results 1 – 12 of 12) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dnumbertest_decimalquantity.cpp117 assertEquals("Failed on initialize", u"1.234123412341234E+15", fq.toScientificString()); in testSwitchStorage()
122 assertEquals("Failed on multiply", u"1.2341234123412345E+16", fq.toScientificString()); in testSwitchStorage()
128 assertEquals("Failed on round", u"1.23412341234E+16", fq.toScientificString()); in testSwitchStorage()
191 assertEquals("Failed on append", u"1E+0", fq.toScientificString()); in testAppend()
194 assertEquals("Failed on append", u"1.2E+1", fq.toScientificString()); in testAppend()
197 assertEquals("Failed on append", u"1.203E+3", fq.toScientificString()); in testAppend()
200 assertEquals("Failed on append", u"1.203E+5", fq.toScientificString()); in testAppend()
203 assertEquals("Failed on append", u"1.203004E+6", fq.toScientificString()); in testAppend()
206 assertEquals("Failed on append", u"1.203004E+7", fq.toScientificString()); in testAppend()
209 assertEquals("Failed on append", u"1.20300405E+7", fq.toScientificString()); in testAppend()
[all …]
Dnumfmtdatadriventest.cpp380 UnicodeString expectedString = expectedQuantity.toScientificString(); in isParsePass()
388 UnicodeString actualString = result.getDecimalQuantity()->toScientificString(); in isParsePass()
424 UnicodeString resultStr = currAmt->getNumber().getDecimalQuantity()->toScientificString(); in isParseCurrencyPass()
433 UnicodeString expectedString = expectedQuantity.toScientificString(); in isParseCurrencyPass()
Dnumfmtst.cpp9654 UnicodeString expectedUString = expectedDQ.toScientificString(); in Test13840_ParseLongStringCrash()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DDecimalQuantityTest.java309 assertEquals("Failed on initialize", "1.234123412341234E+15", fq.toScientificString()); in testSwitchStorage()
314 assertEquals("Failed on multiply", "1.2341234123412345E+16", fq.toScientificString()); in testSwitchStorage()
319 assertEquals("Failed on round", "1.23412341234E+16", fq.toScientificString()); in testSwitchStorage()
336 assertEquals("Failed on append", "1E+0", fq.toScientificString()); in testAppend()
339 assertEquals("Failed on append", "1.2E+1", fq.toScientificString()); in testAppend()
342 assertEquals("Failed on append", "1.203E+3", fq.toScientificString()); in testAppend()
345 assertEquals("Failed on append", "1.203E+5", fq.toScientificString()); in testAppend()
348 assertEquals("Failed on append", "1.203004E+6", fq.toScientificString()); in testAppend()
351 assertEquals("Failed on append", "1.203004E+7", fq.toScientificString()); in testAppend()
354 assertEquals("Failed on append", "1.20300405E+7", fq.toScientificString()); in testAppend()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DDecimalQuantityTest.java306 assertEquals("Failed on initialize", "1.234123412341234E+15", fq.toScientificString()); in testSwitchStorage()
311 assertEquals("Failed on multiply", "1.2341234123412345E+16", fq.toScientificString()); in testSwitchStorage()
316 assertEquals("Failed on round", "1.23412341234E+16", fq.toScientificString()); in testSwitchStorage()
333 assertEquals("Failed on append", "1E+0", fq.toScientificString()); in testAppend()
336 assertEquals("Failed on append", "1.2E+1", fq.toScientificString()); in testAppend()
339 assertEquals("Failed on append", "1.203E+3", fq.toScientificString()); in testAppend()
342 assertEquals("Failed on append", "1.203E+5", fq.toScientificString()); in testAppend()
345 assertEquals("Failed on append", "1.203004E+6", fq.toScientificString()); in testAppend()
348 assertEquals("Failed on append", "1.203004E+7", fq.toScientificString()); in testAppend()
351 assertEquals("Failed on append", "1.20300405E+7", fq.toScientificString()); in testAppend()
[all …]
/external/icu/icu4c/source/i18n/
Dnumber_output.cpp57 return fData->quantity1.toScientificString(); in UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL()
62 return fData->quantity2.toScientificString(); in getSecondDecimal()
Dnumber_decimalquantity.h308 UnicodeString toScientificString() const;
Dnumber_decimalquantity.cpp622 UnicodeString numberString = this->toScientificString(); in toDouble()
933 UnicodeString DecimalQuantity::toScientificString() const { in toScientificString() function in DecimalQuantity
Dfmtable.cpp745 fDecimalStr->appendInvariantChars(fDecimalQuantity->toScientificString(), status); in internalGetCharString()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_AbstractBCD.java714 toScientificString(sb); in toDouble()
1063 public String toScientificString() { in toScientificString() method in DecimalQuantity_AbstractBCD
1065 toScientificString(sb); in toScientificString()
1069 public void toScientificString(StringBuilder result) { in toScientificString() method in DecimalQuantity_AbstractBCD
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_AbstractBCD.java716 toScientificString(sb); in toDouble()
1065 public String toScientificString() { in toScientificString() method in DecimalQuantity_AbstractBCD
1067 toScientificString(sb); in toScientificString()
1071 public void toScientificString(StringBuilder result) { in toScientificString() method in DecimalQuantity_AbstractBCD
/external/icu/libicu/cts_headers/
Dnumber_decimalquantity.h308 UnicodeString toScientificString() const;