/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/number/ |
CurrencyDemo.java | 48 result.setMinimumFractionDigits(hack.decimals); 49 result.setMaximumFractionDigits(hack.decimals); 59 int decimals; field in class:CurrencyDemo.HackCurrencyInfo 62 HackCurrencyInfo(int decimals, double rounding, String symbol) { 63 this.decimals = decimals;
|
/external/icu/icu4c/source/test/intltest/ |
static_unisets_test.cpp | 54 UnicodeSet decimals; local 55 decimals.addAll(*get(unisets::STRICT_COMMA)); 56 decimals.addAll(*get(unisets::STRICT_PERIOD)); 57 decimals.freeze(); 59 grouping.addAll(decimals); 61 decimals.freeze(); 79 ASSERT_IN_SET(decimals, dfs.getConstSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol));
|
plurults.cpp | [all...] |
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
TestBcp47Numbers.java | 35 UnicodeSet decimals = new UnicodeSet("[[:Nd:]&[:nv=0:]-[:nfkcqc=n:]]"); local 37 for (String s : decimals) {
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
GeneratedPluralSamples.java | 352 private final DataSample decimals = new DataSample(PluralRules.SampleType.DECIMAL); 367 decimals.add(ni); 373 String decimalsString = type == PluralType.ordinal ? "" : decimals.toString(); 381 return integers.equals(other.integers) && decimals.equals(other.decimals); 387 decimals.freeze(keyword, rules); 409 // // if the fractional parts must be zero, then this rule is empty for decimals (and thus bounded) 447 // 9999, powers; no decimals 475 private void collect10s(PluralInfo pluralInfo, int start, int end, int decimals) { 476 double power = Math.pow(10, decimals); [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
ExhaustiveNumberTest.java | 48 UnicodeSet decimals = get(Key.STRICT_COMMA).cloneAsThawed().addAll(get(Key.STRICT_PERIOD)) local 50 UnicodeSet grouping = decimals.cloneAsThawed().addAll(get(Key.OTHER_GROUPING_SEPARATORS)) 61 assertInSet(locale, decimals, dfs.getDecimalSeparatorString());
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
ExhaustiveNumberTest.java | 45 UnicodeSet decimals = get(Key.STRICT_COMMA).cloneAsThawed().addAll(get(Key.STRICT_PERIOD)) local 47 UnicodeSet grouping = decimals.cloneAsThawed().addAll(get(Key.OTHER_GROUPING_SEPARATORS)) 58 assertInSet(locale, decimals, dfs.getDecimalSeparatorString());
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/ |
PeriodFormatterData.java | 360 int decimals = 1; local 362 case ECountVariant.DECIMAL2: decimals = 2; break; 363 case ECountVariant.DECIMAL3: decimals = 3; break; 366 if (!omitCount) appendCountValue(count, 1, decimals, sb); 576 default: { // for all decimals
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
PeriodFormatterData.java | 358 int decimals = 1; local 360 case ECountVariant.DECIMAL2: decimals = 2; break; 361 case ECountVariant.DECIMAL3: decimals = 3; break; 364 if (!omitCount) appendCountValue(count, 1, decimals, sb); 574 default: { // for all decimals
|
/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/ |
InteractiveLineGraphView.java | 383 labelLength = formatFloat(mLabelBuffer, mXStopsBuffer.stops[i], mXStopsBuffer.decimals); 396 labelLength = formatFloat(mLabelBuffer, mYStopsBuffer.stops[i], mYStopsBuffer.decimals); 421 * Formats a float value to the given number of decimals. Returns the length of the string. 507 outStops.decimals = (int) Math.ceil(-Math.log10(interval)); 509 outStops.decimals = 0; 1183 int decimals; field in class:InteractiveLineGraphView.AxisStops [all...] |
/external/icu/icu4c/source/i18n/ |
plurrule_impl.h | 294 static int32_t decimals(double n);
|
plurrule.cpp | 368 // originated from a format with trailing decimals. [all...] |
/external/libexif/libexif/ |
exif-entry.c | 546 int decimals = (int)(log10(v_rat.denominator)-0.08+1.0); local 548 decimals, 569 int decimals = (int)(log10(fabs(v_srat.denominator))-0.08+1.0); local 571 decimals, [all...] |
/external/tensorflow/tensorflow/python/keras/engine/ |
training_dataset_test.py | 573 self.assertEqual(np.around(outs[1], decimals=1), 0.5) 574 self.assertEqual(np.around(outs[2], decimals=1), 0.5)
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
PluralRules.java | 745 this(n, decimals(n)); 760 * Return a guess as to the number of decimals that would be displayed. This is only a guess; callers should 761 * always supply the decimals explicitly if possible. Currently, it is up to 6 decimals (without trailing zeros). 769 public static int decimals(double n) { method in class:PluralRules.FixedDecimal 781 long temp = (long)(n * 1000000) % 1000000; // get 6 decimals [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
PluralRules.java | 708 this(n, decimals(n)); 722 * Return a guess as to the number of decimals that would be displayed. This is only a guess; callers should 723 * always supply the decimals explicitly if possible. Currently, it is up to 6 decimals (without trailing zeros). 730 public static int decimals(double n) { method in class:PluralRules.FixedDecimal 742 long temp = (long)(n * 1000000) % 1000000; // get 6 decimals 1028 throw new IllegalArgumentException("Ranges must have the same number of visible decimals: " + start + "~" + end); [all...] |
/external/tensorflow/tensorflow/python/keras/ |
metrics_test.py | 108 result = np.round(self.evaluate(result_t), decimals=2) 242 result = np.round(self.evaluate(result_t), decimals=2) # 58.5 / 5.6 244 self.assertEqual(np.round(self.evaluate(m.total), decimals=2), 58.54) 245 self.assertEqual(np.round(self.evaluate(m.count), decimals=2), 5.6) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
NumberFormatTest.java | [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
NumberFormatTest.java | [all...] |
/external/cldr/tools/java/libs/ |
icu4j.jar | |