Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/intltest/
Dnumbertest_decimalquantity.cpp108 assertEquals("Failed on initialize", u"1.234123412341234E+15", fq.toScientificString()); in testSwitchStorage()
113 assertEquals("Failed on multiply", u"1.2341234123412345E+16", fq.toScientificString()); in testSwitchStorage()
119 assertEquals("Failed on round", u"1.23412341234E+16", fq.toScientificString()); in testSwitchStorage()
173 assertEquals("Failed on append", u"1E+0", fq.toScientificString()); in testAppend()
176 assertEquals("Failed on append", u"1.2E+1", fq.toScientificString()); in testAppend()
179 assertEquals("Failed on append", u"1.203E+3", fq.toScientificString()); in testAppend()
182 assertEquals("Failed on append", u"1.203E+5", fq.toScientificString()); in testAppend()
185 assertEquals("Failed on append", u"1.203004E+6", fq.toScientificString()); in testAppend()
188 assertEquals("Failed on append", u"1.203004E+7", fq.toScientificString()); in testAppend()
191 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.cpp9260 UnicodeString expectedUString = expectedDQ.toScientificString(); in Test13840_ParseLongStringCrash()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DDecimalQuantityTest.java298 assertEquals("Failed on initialize", "1.234123412341234E+15", fq.toScientificString()); in testSwitchStorage()
303 assertEquals("Failed on multiply", "1.2341234123412345E+16", fq.toScientificString()); in testSwitchStorage()
308 assertEquals("Failed on round", "1.23412341234E+16", fq.toScientificString()); in testSwitchStorage()
316 assertEquals("Failed on append", "1E+0", fq.toScientificString()); in testAppend()
319 assertEquals("Failed on append", "1.2E+1", fq.toScientificString()); in testAppend()
322 assertEquals("Failed on append", "1.203E+3", fq.toScientificString()); in testAppend()
325 assertEquals("Failed on append", "1.203E+5", fq.toScientificString()); in testAppend()
328 assertEquals("Failed on append", "1.203004E+6", fq.toScientificString()); in testAppend()
331 assertEquals("Failed on append", "1.203004E+7", fq.toScientificString()); in testAppend()
334 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.java295 assertEquals("Failed on initialize", "1.234123412341234E+15", fq.toScientificString()); in testSwitchStorage()
300 assertEquals("Failed on multiply", "1.2341234123412345E+16", fq.toScientificString()); in testSwitchStorage()
305 assertEquals("Failed on round", "1.23412341234E+16", fq.toScientificString()); in testSwitchStorage()
313 assertEquals("Failed on append", "1E+0", fq.toScientificString()); in testAppend()
316 assertEquals("Failed on append", "1.2E+1", fq.toScientificString()); in testAppend()
319 assertEquals("Failed on append", "1.203E+3", fq.toScientificString()); in testAppend()
322 assertEquals("Failed on append", "1.203E+5", fq.toScientificString()); in testAppend()
325 assertEquals("Failed on append", "1.203004E+6", fq.toScientificString()); in testAppend()
328 assertEquals("Failed on append", "1.203004E+7", fq.toScientificString()); in testAppend()
331 assertEquals("Failed on append", "1.20300405E+7", fq.toScientificString()); in testAppend()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_AbstractBCD.java972 public String toScientificString() { in toScientificString() method in DecimalQuantity_AbstractBCD
974 toScientificString(sb); in toScientificString()
978 public void toScientificString(StringBuilder result) { in toScientificString() method in DecimalQuantity_AbstractBCD
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_AbstractBCD.java970 public String toScientificString() { in toScientificString() method in DecimalQuantity_AbstractBCD
972 toScientificString(sb); in toScientificString()
976 public void toScientificString(StringBuilder result) { in toScientificString() method in DecimalQuantity_AbstractBCD
/external/icu/icu4c/source/i18n/
Dnumber_decimalquantity.h254 UnicodeString toScientificString() const;
Dnumrange_fluent.cpp441 return fResults->quantity1.toScientificString(); in getFirstDecimal()
452 return fResults->quantity2.toScientificString(); in getSecondDecimal()
Dnumber_decimalquantity.cpp578 UnicodeString numberString = this->toScientificString(); in toDouble()
799 UnicodeString DecimalQuantity::toScientificString() const { in toScientificString() function in DecimalQuantity
Dfmtable.cpp740 fDecimalStr->appendInvariantChars(fDecimalQuantity->toScientificString(), status); in internalGetCharString()