Home
last modified time | relevance | path

Searched refs:decimals (Results 1 – 25 of 53) sorted by relevance

123

/third_party/protobuf/js/experimental/runtime/
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.unsigned);
155 for (const [hex, decimals] of Object.entries(decimalHexPairs)) {
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/number/
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/
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()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DExhaustiveNumberTest.java48 UnicodeSet decimals = get(Key.STRICT_COMMA).cloneAsThawed().addAll(get(Key.STRICT_PERIOD)) in testSetCoverage() local
50 UnicodeSet grouping = decimals.cloneAsThawed().addAll(get(Key.OTHER_GROUPING_SEPARATORS)) in testSetCoverage()
62 assertInSet(locale, decimals, dfs.getDecimalSeparatorString()); in testSetCoverage()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DExhaustiveNumberTest.java51 UnicodeSet decimals = get(Key.STRICT_COMMA).cloneAsThawed().addAll(get(Key.STRICT_PERIOD)) in testSetCoverage() local
53 UnicodeSet grouping = decimals.cloneAsThawed().addAll(get(Key.OTHER_GROUPING_SEPARATORS)) in testSetCoverage()
64 assertInSet(locale, decimals, dfs.getDecimalSeparatorString()); in testSetCoverage()
/third_party/rust/crates/minimal-lexical/etc/correctness/
DCargo.toml51 name = "short-decimals"
52 path = "test-parse-random/short-decimals.rs"
/third_party/gstreamer/gstplugins_bad/ext/ttml/
Dttmlparse.c589 gchar **decimals; in ttml_update_style_set() local
593 decimals = g_strsplit (attr, "%", 0); in ttml_update_style_set()
594 n_decimals = g_strv_length (decimals) - 1; in ttml_update_style_set()
596 g_strstrip (decimals[i]); in ttml_update_style_set()
602 g_ascii_strtod (decimals[0], NULL) / 100.0; in ttml_update_style_set()
607 g_ascii_strtod (decimals[0], NULL) / 100.0; in ttml_update_style_set()
609 g_ascii_strtod (decimals[1], NULL) / 100.0; in ttml_update_style_set()
613 style_set->padding_before = g_ascii_strtod (decimals[0], NULL) / 100.0; in ttml_update_style_set()
615 g_ascii_strtod (decimals[1], NULL) / 100.0; in ttml_update_style_set()
616 style_set->padding_after = g_ascii_strtod (decimals[2], NULL) / 100.0; in ttml_update_style_set()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/dash/
Dgstxmlhelper.c33 _mpd_helper_convert_to_millisecs (guint decimals, gint pos) in _mpd_helper_convert_to_millisecs() argument
47 return decimals * num / den; in _mpd_helper_convert_to_millisecs()
86 -1, decimals = -1, read; in _mpd_helper_parse_duration() local
218 decimals = _mpd_helper_convert_to_millisecs (read, pos); in _mpd_helper_parse_duration()
220 decimals); in _mpd_helper_parse_duration()
257 if (decimals == -1) in _mpd_helper_parse_duration()
258 decimals = 0; in _mpd_helper_parse_duration()
259 GST_TRACE ("H:M:S.MS=%d:%d:%d.%03d", hours, minutes, seconds, decimals); in _mpd_helper_parse_duration()
268 || !_mpd_helper_accumulate (&tmp_value, 1000, decimals)) in _mpd_helper_parse_duration()
/third_party/cJSON/tests/unity/src/
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/ffmpeg/tools/
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/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/impl/
DPeriodFormatterData.java360 int decimals = 1; in appendCount() local
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()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
DPeriodFormatterData.java358 int decimals = 1; in appendCount() local
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()
/third_party/unity/src/
Dunity.c374 int decimals, digits; in UnityPrintFloat() local
436decimals = ((exponent <= 0) && (exponent >= -(sig_digits + 3))) ? (-exponent) : (sig_digits - 1); in UnityPrintFloat()
437 exponent += decimals; in UnityPrintFloat()
440 while ((decimals > 0) && ((n % 10) == 0)) in UnityPrintFloat()
443 decimals--; in UnityPrintFloat()
448 while ((n != 0) || (digits < (decimals + 1))) in UnityPrintFloat()
455 if (digits == decimals) { UNITY_OUTPUT_CHAR('.'); } in UnityPrintFloat()
/third_party/typescript/tests/baselines/reference/
DenumConstantMembers.types2 // Constant members allow negatives, but not decimals. Also hex literals are allowed
DenumConstantMembers.errors.txt11 // Constant members allow negatives, but not decimals. Also hex literals are allowed
DenumConstantMembers.symbols2 // Constant members allow negatives, but not decimals. Also hex literals are allowed
/third_party/skia/third_party/externals/icu/source/i18n/
Dplurrule_impl.h325 static int32_t decimals(double n);
Dplurrule.cpp1728 int32_t numFractionDigits = decimals(n); in init()
1800 int32_t FixedDecimal::decimals(double n) { in decimals() function in FixedDecimal
/third_party/libexif/libexif/
Dexif-entry.c552 int decimals = (int)(log10(v_rat.denominator)-0.08+1.0); in exif_entry_format_value() local
554 decimals, in exif_entry_format_value()
575 int decimals = (int)(log10(abs(v_srat.denominator))-0.08+1.0); in exif_entry_format_value() local
577 decimals, in exif_entry_format_value()
/third_party/node/deps/icu-small/source/i18n/
Dplurrule_impl.h325 static int32_t decimals(double n);
Dplurrule.cpp1728 int32_t numFractionDigits = decimals(n); in init()
1800 int32_t FixedDecimal::decimals(double n) { in decimals() function in FixedDecimal
/third_party/icu/icu4c/source/i18n/
Dplurrule_impl.h325 static int32_t decimals(double n);
Dplurrule.cpp1728 int32_t numFractionDigits = decimals(n); in init()
1800 int32_t FixedDecimal::decimals(double n) { in decimals() function in FixedDecimal
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DPluralRules.java748 this(n, decimals(n)); in FixedDecimal()
772 public static int decimals(double n) { in decimals() method in PluralRules.FixedDecimal
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralRules.java794 this(n, decimals(n)); in FixedDecimal()
816 public static int decimals(double n) { in decimals() method in PluralRules.FixedDecimal

123