Home
last modified time | relevance | path

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

12

/external/icu/icu4c/source/test/intltest/
Dstatic_unisets_test.cpp54 UnicodeSet decimals; in testSetCoverage() local
55 decimals.addAll(*get(unisets::STRICT_COMMA)); in testSetCoverage()
56 decimals.addAll(*get(unisets::STRICT_PERIOD)); in testSetCoverage()
57 decimals.freeze(); in testSetCoverage()
59 grouping.addAll(decimals); in testSetCoverage()
61 decimals.freeze(); in testSetCoverage()
79 ASSERT_IN_SET(decimals, dfs.getConstSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol)); in testSetCoverage()
Dplurults.cpp992 int32_t numFractionDigits = FixedDecimal::decimals(tc.n); in testFixedDecimal()
/external/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()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGeneratedPluralSamples.java352 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);
475 private void collect10s(PluralInfo pluralInfo, int start, int end, int decimals) {
476 double power = Math.pow(10, decimals);
478 add(pluralInfo, i / power, decimals);
482 private void collect(PluralInfo pluralInfo, int limit, int decimals) {
483 double power = Math.pow(10, decimals);
[all …]
/external/icu/android_icu4j/src/main/tests/android/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()
61 assertInSet(locale, decimals, dfs.getDecimalSeparatorString()); in testSetCoverage()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DExhaustiveNumberTest.java45 UnicodeSet decimals = get(Key.STRICT_COMMA).cloneAsThawed().addAll(get(Key.STRICT_PERIOD)) in testSetCoverage() local
47 UnicodeSet grouping = decimals.cloneAsThawed().addAll(get(Key.OTHER_GROUPING_SEPARATORS)) in testSetCoverage()
58 assertInSet(locale, decimals, dfs.getDecimalSeparatorString()); in testSetCoverage()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestBcp47Numbers.java35 UnicodeSet decimals = new UnicodeSet("[[:Nd:]&[:nv=0:]-[:nfkcqc=n:]]"); in TestScripts() local
37 for (String s : decimals) { in TestScripts()
/external/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()
/external/icu/android_icu4j/src/main/java/android/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()
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/
DMANIFEST227 tests/yui/decimals.css
228 tests/yui/decimals.css.min
299 tests/yui/out/decimals.out
300 tests/yui/out/decimals.out.b
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_dataset_test.py573 self.assertEqual(np.around(outs[1], decimals=1), 0.5)
574 self.assertEqual(np.around(outs[2], decimals=1), 0.5)
/external/icu/icu4c/source/i18n/
Dplurrule_impl.h294 static int32_t decimals(double n);
Dplurrule.cpp1549 int32_t numFractionDigits = decimals(n); in init()
1607 int32_t FixedDecimal::decimals(double n) { in decimals() function in FixedDecimal
/external/libexif/libexif/
Dexif-entry.c546 int decimals = (int)(log10(v_rat.denominator)-0.08+1.0); in exif_entry_format_value() local
548 decimals, in exif_entry_format_value()
569 int decimals = (int)(log10(fabs(v_srat.denominator))-0.08+1.0); in exif_entry_format_value() local
571 decimals, in exif_entry_format_value()
/external/eigen/unsupported/Eigen/
DNonLinearOptimization67 * code. Please note that we do not always get the exact same decimals as they do,
/external/u-boot/arch/arm/cpu/armv8/fsl-layerscape/doc/
DREADME.falcon72 Note, U-Boot takes values as hexadecimals while Linux takes them as decimals by
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralRules.java708 this(n, decimals(n)); in FixedDecimal()
730 public static int decimals(double n) { in decimals() method in PluralRules.FixedDecimal
/external/icu/android_icu4j/src/main/java/android/icu/text/
DPluralRules.java745 this(n, decimals(n)); in FixedDecimal()
769 public static int decimals(double n) { in decimals() method in PluralRules.FixedDecimal
/external/tensorflow/tensorflow/python/keras/
Dmetrics_test.py108 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)
/external/python/cpython3/Doc/library/
Ddecimal.rst127 The usual start to using decimals is importing the module, viewing the current
164 decimals and floats in constructors or ordering comparisons raises
333 a single cast inside a loop. With context set and decimals created, the bulk of
1120 The usual approach to working with decimals is to create :class:`Decimal`
Drandom.rst163 integers, floats, and fractions but excludes decimals).
/external/python/cpython2/Doc/library/
Ddecimal.rst122 The usual start to using decimals is importing the module, viewing the current
299 a single cast inside a loop. With context set and decimals created, the bulk of
1143 The usual approach to working with decimals is to create :class:`Decimal`
/external/icu/icu4c/source/data/lang/
Dca.txt903 hanidec{"nombres decimals xinesos"}
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatTest.java4061 int decimals = dotPos < 0 ? 0 : test[2].length() - dotPos - 1; in TestCurrencyPlurals()
4063 numberFormat.setMaximumFractionDigits(decimals); in TestCurrencyPlurals()
4064 numberFormat.setMinimumFractionDigits(decimals); in TestCurrencyPlurals()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatTest.java4064 int decimals = dotPos < 0 ? 0 : test[2].length() - dotPos - 1; in TestCurrencyPlurals()
4066 numberFormat.setMaximumFractionDigits(decimals); in TestCurrencyPlurals()
4067 numberFormat.setMinimumFractionDigits(decimals); in TestCurrencyPlurals()

12