Home
last modified time | relevance | path

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

123

/external/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()
64 decimals.freeze(); in testSetCoverage()
82 ASSERT_IN_SET(decimals, dfs.getConstSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol)); in testSetCoverage()
/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/tensorflow/tensorflow/python/ops/numpy_ops/
D__init__.py198 def round(a, decimals=0): argument
199 return around(a, decimals=decimals)
Dnp_array_ops_test.py902 run_test(5.567, decimals=2)
904 run_test([1.27, 2.49, 2.75], decimals=1)
905 run_test([23.6, 45.1], decimals=-1)
Dnp_array_ops.py726 def around(a, decimals=0): # pylint: disable=missing-docstring argument
729 factor = math.pow(10, decimals)
/external/cldr/tools/java/org/unicode/cldr/tool/
DGeneratedPluralSamples.java380 private final DataSample decimals = new DataSample(PluralRules.SampleType.DECIMAL);
395 decimals.add(ni);
402 String decimalsString = type == PluralType.ordinal ? "" : decimals.toString();
410 return integers.equals(other.integers) && decimals.equals(other.decimals);
416 decimals.freeze(keyword, rules);
521 private void collect10s(PluralInfo pluralInfo, long start, long end, int decimals) {
522 double power = Math.pow(10, decimals);
524 add(pluralInfo, i / power, decimals);
528 private void collect(PluralInfo pluralInfo, long start, long limit, int decimals) {
529 double power = Math.pow(10, decimals);
[all …]
/external/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()
61 assertInSet(locale, decimals, dfs.getDecimalSeparatorString()); in testSetCoverage()
/external/icu/android_icu4j/src/main/tests/android/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()
/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/cldr/tools/java/com/ibm/icu/text/
DFixedDecimal.java218 this(n, decimals(n)); in FixedDecimal()
240 public static int decimals(double n) { in decimals() method in FixedDecimal
/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/rust/crates/ryu/
DREADME.md95 Both libraries print short decimals such as 0.0000123 without scientific
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_dataset_test.py563 self.assertEqual(np.around(outs[1], decimals=1), 0.5)
564 self.assertEqual(np.around(outs[2], decimals=1), 0.5)
/external/icu/icu4c/source/i18n/
Dplurrule_impl.h312 static int32_t decimals(double n);
Dplurrule.cpp1699 int32_t numFractionDigits = decimals(n); in init()
1764 int32_t FixedDecimal::decimals(double n) { in decimals() function in FixedDecimal
/external/icu/libicu/cts_headers/
Dplurrule_impl.h312 static int32_t decimals(double n);
/external/libexif/libexif/
Dexif-entry.c548 int decimals = (int)(log10(v_rat.denominator)-0.08+1.0); in exif_entry_format_value() local
550 decimals, in exif_entry_format_value()
571 int decimals = (int)(log10(fabs(v_srat.denominator))-0.08+1.0); in exif_entry_format_value() local
573 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/zstd/tests/
DREADME.md161 speedRatio= (accepts decimals)
/external/tensorflow/third_party/py/numpy/tf_numpy_api/
Dtensorflow.experimental.numpy.pbtxt201 argspec: "args=[\'a\', \'decimals\'], varargs=None, keywords=None, defaults=[\'0\'], "
757 argspec: "args=[\'a\', \'decimals\'], varargs=None, keywords=None, defaults=[\'0\'], "
/external/icu/android_icu4j/src/main/java/android/icu/text/
DPluralRules.java786 this(n, decimals(n)); in FixedDecimal()
810 public static int decimals(double n) { in decimals() method in PluralRules.FixedDecimal
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralRules.java748 this(n, decimals(n)); in FixedDecimal()
770 public static int decimals(double n) { in decimals() method in PluralRules.FixedDecimal
/external/tensorflow/tensorflow/python/keras/
Dmetrics_test.py115 result = np.round(self.evaluate(result_t), decimals=2)
268 result = np.round(self.evaluate(result_t), decimals=2) # 58.5 / 5.6
270 self.assertEqual(np.round(self.evaluate(m.total), decimals=2), 58.54)
271 self.assertEqual(np.round(self.evaluate(m.count), decimals=2), 5.6)

123