Home
last modified time | relevance | path

Searched refs:decimals (Results 1 - 23 of 23) sorted by relevance

/third_party/protobuf/js/experimental/runtime/
H A Dint64_test.js118 for (const [hex, decimals] of Object.entries(decimalHexPairs)) {
120 expect(int64.toSignedDecimalString()).toEqual(decimals.signed);
125 for (const [hex, decimals] of Object.entries(decimalHexPairs)) {
128 .toEqual(decimals.unsigned || decimals.signed);
133 for (const [hex, decimals] of Object.entries(decimalHexPairs)) {
144 for (const [hex, decimals] of Object.entries(decimalHexPairs)) {
145 const signed = Int64.fromDecimalString(decimals.signed);
147 if (decimals.unsigned) {
148 const unsigned = Int64.fromDecimalString(decimals
[all...]
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/number/
H A DCurrencyDemo.java48 result.setMinimumFractionDigits(hack.decimals); in getCurrencyFormat()
49 result.setMaximumFractionDigits(hack.decimals); in getCurrencyFormat()
59 int decimals; field in CurrencyDemo.HackCurrencyInfo
62 HackCurrencyInfo(int decimals, double rounding, String symbol) { in HackCurrencyInfo() argument
63 this.decimals = decimals; in HackCurrencyInfo()
/third_party/icu/icu4c/source/test/intltest/
H A Dstatic_unisets_test.cpp57 UnicodeSet decimals; in testSetCoverage() local
58 decimals.addAll(*get(unisets::STRICT_COMMA)); in testSetCoverage()
59 decimals.addAll(*get(unisets::STRICT_PERIOD)); in testSetCoverage()
60 decimals.freeze(); in testSetCoverage()
62 grouping.addAll(decimals); in testSetCoverage()
83 ASSERT_IN_SET(decimals, dfs.getConstSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol)); in testSetCoverage()
H A Dplurults.cpp1572 int32_t numFractionDigits = FixedDecimal::decimals(tc.n); in testFixedDecimal()
1574 errln("file %s, line %d: decimals(%g) expected %d, actual %d", in testFixedDecimal()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
H A DExhaustiveNumberTest.java51 UnicodeSet decimals = get(Key.STRICT_COMMA).cloneAsThawed().addAll(get(Key.STRICT_PERIOD)) in testSetCoverage()
53 UnicodeSet grouping = decimals.cloneAsThawed().addAll(get(Key.OTHER_GROUPING_SEPARATORS)) in testSetCoverage()
64 assertInSet(locale, decimals, dfs.getDecimalSeparatorString()); in testSetCoverage()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
H A DExhaustiveNumberTest.java48 UnicodeSet decimals = get(Key.STRICT_COMMA).cloneAsThawed().addAll(get(Key.STRICT_PERIOD)) in testSetCoverage()
50 UnicodeSet grouping = decimals.cloneAsThawed().addAll(get(Key.OTHER_GROUPING_SEPARATORS)) in testSetCoverage()
62 assertInSet(locale, decimals, dfs.getDecimalSeparatorString()); in testSetCoverage()
/third_party/cJSON/tests/unity/src/
H A Dunity.c284 int decimals, digits; in UnityPrintFloat() local
303 decimals = (exponent <= 0 && exponent >= -9) ? -exponent : 5; in UnityPrintFloat()
304 exponent += decimals; in UnityPrintFloat()
307 while (decimals > 0 && n % 10 == 0) in UnityPrintFloat()
310 decimals--; in UnityPrintFloat()
315 while (n != 0 || digits < decimals + 1) in UnityPrintFloat()
322 if(digits == decimals) UNITY_OUTPUT_CHAR('.'); in UnityPrintFloat()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
H A DPeriodFormatterData.java358 int decimals = 1; in appendCount()
360 case ECountVariant.DECIMAL2: decimals = 2; break; in appendCount()
361 case ECountVariant.DECIMAL3: decimals = 3; break; in appendCount()
364 if (!omitCount) appendCountValue(count, 1, decimals, sb); in appendCount()
574 default: { // for all decimals in computeForm()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/impl/
H A DPeriodFormatterData.java360 int decimals = 1; in appendCount()
362 case ECountVariant.DECIMAL2: decimals = 2; break; in appendCount()
363 case ECountVariant.DECIMAL3: decimals = 3; break; in appendCount()
366 if (!omitCount) appendCountValue(count, 1, decimals, sb); in appendCount()
576 default: { // for all decimals in computeForm()
/third_party/ffmpeg/tools/
H A Dsidxindex.c216 static void write_time(FILE *out, int64_t time, int decimals, enum AVRounding round) in write_time() argument
222 fractions = av_rescale_rnd(fractions, pow(10, decimals), AV_TIME_BASE, round); in write_time()
230 fprintf(out, "%d.%0*dS", seconds, decimals, fractions); in write_time()
/third_party/unity/src/
H A Dunity.c372 int decimals; in UnityPrintFloat() local
435 decimals = ((exponent <= 0) && (exponent >= -(sig_digits + 3))) ? (-exponent) : (sig_digits - 1); in UnityPrintFloat()
436 exponent += decimals; in UnityPrintFloat()
439 while ((decimals > 0) && ((n % 10) == 0)) in UnityPrintFloat()
442 decimals--; in UnityPrintFloat()
447 while ((n != 0) || (digits <= decimals)) in UnityPrintFloat()
456 if (digits == decimals) in UnityPrintFloat()
/third_party/libexif/libexif/
H A Dexif-entry.c583 int decimals = (int)(log10(v_rat.denominator)-0.08+1.0); in exif_entry_format_value() local
585 decimals, in exif_entry_format_value()
606 int decimals = (int)(log10(abs(v_srat.denominator))-0.08+1.0); in exif_entry_format_value() local
608 decimals, in exif_entry_format_value()
/third_party/icu/icu4c/source/i18n/
H A Dplurrule_impl.h325 static int32_t decimals(double n);
H A Dplurrule.cpp447 // originated from a format with trailing decimals. in getSamplesFromString()
1733 int32_t numFractionDigits = decimals(n);
1805 int32_t FixedDecimal::decimals(double n) {
/third_party/node/deps/icu-small/source/i18n/
H A Dplurrule_impl.h325 static int32_t decimals(double n);
H A Dplurrule.cpp451 // originated from a format with trailing decimals. in getSamplesFromString()
1737 int32_t numFractionDigits = decimals(n);
1809 int32_t FixedDecimal::decimals(double n) {
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dplurrule_impl.h325 static int32_t decimals(double n);
H A Dplurrule.cpp451 // originated from a format with trailing decimals. in getSamplesFromString()
1728 int32_t numFractionDigits = decimals(n);
1800 int32_t FixedDecimal::decimals(double n) {
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DPluralRules.java748 this(n, decimals(n)); in FixedDecimal()
763 * Return a guess as to the number of decimals that would be displayed. This is only a guess; callers should
764 * always supply the decimals explicitly if possible. Currently, it is up to 6 decimals (without trailing zeros).
772 public static int decimals(double n) { in decimals() method in PluralRules.FixedDecimal
784 long temp = (long)(n * 1000000) % 1000000; // get 6 decimals in decimals()
1090 throw new IllegalArgumentException("Ranges must have the same number of visible decimals: " + start + "~" + end); in FixedDecimalRange()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DPluralRules.java794 this(n, decimals(n)); in FixedDecimal()
808 * Return a guess as to the number of decimals that would be displayed. This is only a guess; callers should
809 * always supply the decimals explicitly if possible. Currently, it is up to 6 decimals (without trailing zeros).
816 public static int decimals(double n) { in decimals() method in PluralRules.FixedDecimal
828 long temp = (long)(n * 1000000) % 1000000; // get 6 decimals in decimals()
1124 throw new IllegalArgumentException("Ranges must have the same number of visible decimals: " + start + "~" + end); in DecimalQuantitySamplesRange()
1281 // originated from a format with trailing decimals. in addSamples()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DNumberFormatTest.java4281 int decimals = dotPos < 0 ? 0 : test[2].length() - dotPos - 1; in TestCurrencyPlurals()
4283 numberFormat.setMaximumFractionDigits(decimals); in TestCurrencyPlurals()
4284 numberFormat.setMinimumFractionDigits(decimals); in TestCurrencyPlurals()
4522 // * TWD and PKR switched from 0 decimals to 2; ISK still has 0, so change test to that in TestCurrencyUsage()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DNumberFormatTest.java4281 int decimals = dotPos < 0 ? 0 : test[2].length() - dotPos - 1; in TestCurrencyPlurals()
4283 numberFormat.setMaximumFractionDigits(decimals); in TestCurrencyPlurals()
4284 numberFormat.setMinimumFractionDigits(decimals); in TestCurrencyPlurals()
4522 // * TWD and PKR switched from 0 decimals to 2; ISK still has 0, so change test to that in TestCurrencyUsage()
/third_party/skia/third_party/externals/sfntly/java/lib/
H A Dicu4j-4_8_1_1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/ibm/ com/ibm/icu/ com/ibm/icu/impl/ ...

Completed in 50 milliseconds