Home
last modified time | relevance | path

Searched refs:places (Results 1 - 25 of 36) sorted by relevance

12

/third_party/python/Lib/unittest/test/
H A Dtest_assertions.py18 self.assertAlmostEqual(1.1, 1.0, places=0)
20 self.assertAlmostEqual, 1.1, 1.0, places=1)
22 self.assertAlmostEqual(0, .1+.1j, places=0)
23 self.assertNotAlmostEqual(0, .1+.1j, places=1)
25 self.assertAlmostEqual, 0, .1+.1j, places=1)
27 self.assertNotAlmostEqual, 0, .1+.1j, places=0)
49 1.1, 1.0, places=2, delta=2)
51 1.1, 1.0, places=2, delta=2)
231 [r"^1 != 2 within 7 places \(1 difference\)$", "^oops$",
232 r"^1 != 2 within 7 places \(
[all...]
/third_party/python/Lib/unittest/
H A Dcase.py884 def assertAlmostEqual(self, first, second, places=None, msg=None,
887 difference rounded to the given number of decimal places
892 Note that decimal places (from zero) are usually not the same
901 if delta is not None and places is not None:
902 raise TypeError("specify delta or places not both")
915 if places is None:
916 places = 7
918 if round(diff, places) == 0:
921 standardMsg = '%s != %s within %r places (%s difference)' % (
924 places,
[all...]
/third_party/python/Lib/test/
H A Dtest_difflib.py11 self.assertAlmostEqual(sm.ratio(), 0.995, places=3)
17 self.assertAlmostEqual(sm.ratio(), 0.995, places=3)
26 self.assertAlmostEqual(sm.ratio(), 0.994, places=3)
55 self.assertAlmostEqual(sm.ratio(), 0, places=3)
60 self.assertAlmostEqual(sm.ratio(), 0.9975, places=3)
H A Dtest_statistics.py139 # either become redundant, or be moved into more appropriate places.
2284 self.assertAlmostEqual(actual_mean, expected_mean, places=5)
2346 self.assertAlmostEqual(actual_mean, expected_mean, places=5)
2690 self.assertAlmostEqual(X.pdf(x), est_pdf, places=4)
2705 self.assertAlmostEqual(Z.pdf(x / 100.0), px, places=4)
2706 self.assertAlmostEqual(Z.pdf(-x / 100.0), px, places=4)
2735 self.assertAlmostEqual(Z.cdf(z), cum_prob, places=5)
2736 self.assertAlmostEqual(Z.cdf(-z), 1.0 - cum_prob, places=5)
2767 self.assertAlmostEqual(-Z.inv_cdf(p), x, places=3)
2769 self.assertAlmostEqual(Z.inv_cdf(p), x, places
[all...]
H A Dtest_cmath.py154 self.assertAlmostEqual(cmath.pi, pi_expected, places=9,
156 self.assertAlmostEqual(cmath.e, e_expected, places=9,
612 # test complex values that are close to within 12 decimal places
623 # test values near zero that are near to within three decimal places
/third_party/python/Lib/ctypes/test/
H A Dtest_structures.py550 self.assertAlmostEqual(result, expected, places=6)
552 self.assertAlmostEqual(s.data[0], 3.14159, places=6)
553 self.assertAlmostEqual(s.data[1], 2.71828, places=6)
554 self.assertAlmostEqual(s.more_data[0], -3.0, places=6)
555 self.assertAlmostEqual(s.more_data[1], -2.0, places=6)
H A Dtest_byteswap.py138 self.assertAlmostEqual(s.value, math.pi, places=6)
140 self.assertAlmostEqual(s.value, math.pi, places=6)
143 self.assertAlmostEqual(s.value, math.pi, places=6)
H A Dtest_callbacks.py25 self.assertAlmostEqual(result, arg, places=5)
33 self.assertAlmostEqual(result, arg, places=5)
/third_party/skia/src/pdf/
H A DSkPDFUtils.cpp255 // return "x/pow(10, places)", given 0<x<pow(10, places)
256 // result points to places+2 chars.
257 static size_t print_permil_as_decimal(int x, char* result, unsigned places) { in print_permil_as_decimal() argument
259 for (int i = places; i > 0; --i) { in print_permil_as_decimal()
264 for (j = places; j > 1; --j) { in print_permil_as_decimal()
/third_party/libunwind/libunwind/doc/
H A Dunw_getcontext.tex35 initialized by \Func{unw\_getcontext()} in places where a structure
/third_party/ltp/testcases/kernel/fs/doio/
H A Drwtest251 places*)
252 FSIZE=${Scenario#places-}
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/
H A DDumbTextComponent.java785 int places = 1; in fixHex()
792 store += places * value; in fixHex()
794 places *= 16; in fixHex()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/serializable/
H A DSerializableTestUtility.java143 private static Locale places[] = { field in SerializableTestUtility
460 Currency currencies[] = new Currency[places.length]; in getTestObjects()
462 for (int i = 0; i < places.length; i += 1) { in getTestObjects()
463 currencies[i] = Currency.getInstance(places[i]); in getTestObjects()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
H A DSerializableTestUtility.java142 private static Locale places[] = { field in SerializableTestUtility
459 Currency currencies[] = new Currency[places.length]; in getTestObjects()
461 for (int i = 0; i < places.length; i += 1) { in getTestObjects()
462 currencies[i] = Currency.getInstance(places[i]); in getTestObjects()
/third_party/gn/src/gn/
H A Dlabel.cc242 difference places in the directory hierarchy).
/third_party/skia/third_party/externals/dng_sdk/source/
H A Ddng_xmp.h195 uint32 places = 6,
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
H A DBigDecimal.java197 * <code>digits</code> (the default is 9 digits). If the number of places needed before the decimal point exceeds the
902 * "0" -- Zero "12" -- A whole number "-76" -- A signed whole number "12.70" -- Some decimal places "+0.003" -- Plus
2064 * @param before The <code>int</code> specifying the number of places before the decimal point. Use -1 for 'as many as are needed'.
2065 * @param after The <code>int</code> specifying the number of places after the decimal point. Use -1 for 'as many as are needed'.
2100 * <code>explaces</code> must be a positive number; it sets the number of places (digits after the sign of the
2108 * of places needed before the decimal point exceeds <code>exdigits</code>, or if the absolute value of the result
2126 * @param before The <code>int</code> specifying the number of places before the decimal point. Use -1 for 'as many as
2128 * @param after The <code>int</code> specifying the number of places after the decimal point. Use -1 for 'as many as
2130 * @param explaces The <code>int</code> specifying the number of places to be used for any exponent. Use -1 for 'as many
2161 int places in format()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/math/
H A DBigDecimal.java198 * <code>digits</code> (the default is 9 digits). If the number of places needed before the decimal point exceeds the
883 * "0" -- Zero "12" -- A whole number "-76" -- A signed whole number "12.70" -- Some decimal places "+0.003" -- Plus
2012 * @param before The <code>int</code> specifying the number of places before the decimal point. Use -1 for 'as many as are needed'.
2013 * @param after The <code>int</code> specifying the number of places after the decimal point. Use -1 for 'as many as are needed'.
2047 * <code>explaces</code> must be a positive number; it sets the number of places (digits after the sign of the
2055 * of places needed before the decimal point exceeds <code>exdigits</code>, or if the absolute value of the result
2073 * @param before The <code>int</code> specifying the number of places before the decimal point. Use -1 for 'as many as
2075 * @param after The <code>int</code> specifying the number of places after the decimal point. Use -1 for 'as many as
2077 * @param explaces The <code>int</code> specifying the number of places to be used for any exponent. Use -1 for 'as many
2107 int places in format()
[all...]
/third_party/protobuf/python/
H A Dmox.py835 def __init__(self, float_value, places=7):
840 places: The number of decimal places to round to.
844 self._places = places
/third_party/python/Lib/
H A D_pydecimal.py1869 decimal places using the rounding mode for the current
2656 def _round(self, places, rounding):
2666 if places <= 0:
2670 ans = self._rescale(self.adjusted()+1-places, rounding)
2676 ans = ans._rescale(ans.adjusted()+1-places, rounding)
2764 # p places (or fewer in the case of underflow) will round
3237 places = p - self._ln_exp_bound() + 2 # at least p+3 places
3239 coeff = _dlog(c, e, places)
3243 places
[all...]
/third_party/toybox/toys/pending/
H A Dbc.c1230 void bc_num_truncate(BcNum *n, size_t places) { in bc_num_truncate() argument
1232 if (!places) return; in bc_num_truncate()
1234 n->rdx -= places; in bc_num_truncate()
1237 n->len -= places; in bc_num_truncate()
1238 memmove(n->num, n->num + places, n->len); in bc_num_truncate()
1243 static void bc_num_extend(BcNum *n, size_t places) { in bc_num_extend() argument
1245 size_t len = n->len + places; in bc_num_extend()
1247 if (!places) return; in bc_num_extend()
1251 memmove(n->num + places, n->num, n->len); in bc_num_extend()
1252 memset(n->num, 0, places); in bc_num_extend()
1286 bc_num_shift(BcNum *n, size_t places) bc_num_shift() argument
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DUtility.java579 // This part of the loop places the next byte into the local in RLEStringToByteArray()
1037 static public String hex(long i, int places) { in hex() argument
1044 if (result.length() < places) { in hex()
1045 result = "0000000000000000".substring(result.length(),places) + result; in hex()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DUtility.java582 // This part of the loop places the next byte into the local in RLEStringToByteArray()
972 static public String hex(long i, int places) { in hex() argument
979 if (result.length() < places) { in hex()
980 result = "0000000000000000".substring(result.length(),places) + result; in hex()
/third_party/benchmark/tools/gbench/
H A Dreport.py1192 unittest_instance.assertAlmostEqual(m1['time'], m2['time'], places=4)
1193 unittest_instance.assertAlmostEqual(m1['cpu'], m2['cpu'], places=4)
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/translit/
H A DTransliteratorInputMethod.java607 * event both places.

Completed in 43 milliseconds

12