Home
last modified time | relevance | path

Searched refs:fractions (Results 1 – 25 of 130) sorted by relevance

123456

/third_party/python/Lib/test/test_asyncio/
Dtest_context.py14 async def fractions(t, precision, x, y): function
24 fractions(0.1, 3, 1, 3), fractions(0.2, 6, 1, 3))
/third_party/python/Doc/library/
Dfractions.rst1 :mod:`fractions` --- Rational numbers
4 .. module:: fractions
10 **Source code:** :source:`Lib/fractions.py`
14 The :mod:`fractions` module provides support for rational number arithmetic.
51 >>> from fractions import Fraction
138 >>> from fractions import Fraction
Dnumeric.rst24 fractions.rst
Dnumbers.rst89 extensions of the real numbers. For example, :class:`fractions.Fraction`
101 # simple fractions.
186 :class:`fractions.Fraction` uses::
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DUnitsConverter.java211 String[] fractions = factor.split("/"); in processFactor() local
212 assert (fractions.length == 1 || fractions.length == 2); in processFactor()
214 if (fractions.length == 1) { in processFactor()
215 return processFactorWithoutDivision(fractions[0]); in processFactor()
218 Factor num = processFactorWithoutDivision(fractions[0]); in processFactor()
219 Factor den = processFactorWithoutDivision(fractions[1]); in processFactor()
/third_party/python/Doc/tutorial/
Dfloatingpoint.rst15 fractions. For example, the decimal fraction ::
23 has value 0/2 + 0/4 + 1/8. These two fractions have identical values, the only
27 Unfortunately, most decimal fractions cannot be represented exactly as binary
28 fractions. A consequence is that, in general, the decimal floating-point
156 Another form of exact arithmetic is supported by the :mod:`fractions` module
216 decimal fractions cannot be represented exactly as binary (base 2) fractions.
284 The :mod:`fractions` and :mod:`decimal` modules make these calculations
288 >>> from fractions import Fraction
/third_party/ffmpeg/tools/
Dsidxindex.c219 int fractions = time % AV_TIME_BASE; in write_time() local
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/rust/crates/minimal-lexical/etc/correctness/
DCargo.toml39 name = "long-fractions"
40 path = "test-parse-random/long-fractions.rs"
/third_party/libinput/doc/user/
Dwheel-api.rst61 movements are normalized into multiples (or fractions) of 120 with each
91 Scrolling on high-resolution wheels will produce fractions of 120, depending
136 Fast-scrolling on a high-resolution mouse may trigger multiple fractions per
/third_party/skia/third_party/externals/freetype/src/autofit/
Dafcover.h53 COVERAGE( fractions, FRACTIONS,
/third_party/protobuf/src/google/protobuf/
Dtimestamp.proto44 // calendar, encoded as a count of seconds and fractions of seconds at
133 // Non-negative fractions of a second at nanosecond resolution. Negative
134 // second values with fractions must still have non-negative nanos values
Dduration.proto44 // as a count of seconds and fractions of seconds at nanosecond
109 // Signed fractions of a second at nanosecond resolution of the span
/third_party/rust/crates/minimal-lexical/etc/
Dlemire_table.py19 from fractions import Fraction
/third_party/python/Lib/test/
Dtest_fractions.py8 import fractions
14 F = fractions.Fraction
58 if isinstance(other, fractions.Fraction):
81 class DummyFraction(fractions.Fraction):
723 f = fractions.Fraction(myint(1 * 3), myint(2 * 3))
/third_party/icu/icu4c/source/data/rbnf/
Dkk.txt18 "x.x: << \u0431\u04AF\u0442\u0456\u043D >%%fractions>;",
51 "%%fractions:",
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DPluralSamples.java111 mentioned.addAll(fractions(mentioned)); in PluralSamples()
193 private Set<FixedDecimal> fractions(Set<FixedDecimal> original) { in fractions() method in PluralSamples
/third_party/skia/third_party/externals/harfbuzz/test/shape/data/in-house/
Dmeson.build11 'automatic-fractions.tests',
DMakefile.sources11 tests/automatic-fractions.tests \
/third_party/vk-gl-cts/external/vulkancts/
DREADME.md183 CTS execution may be split into N fractions ( for the purpose of running it in parallel ) using
189 When collecting results for a Conformance Submission Package the number of fractions must not excee…
249 1. Full test logs (`TestResults.qpa`) from CTS runs against all driver builds and all fractions
254 …amed `<submission pkg dir>/TestResults-<driver build type>-<fraction id>-of-<total fractions>.qpa`,
258 fractions then result files for all fractions must be provided, each file must
/third_party/skia/third_party/externals/icu/source/data/rbnf/
Dru.txt16 …e{\u0446\u0435\u043B\u044B\u0439}other{\u0446\u0435\u043B\u044B\u0445})$ ]>%%fractions-feminine>;",
57 …e{\u0446\u0435\u043B\u0430\u044F}other{\u0446\u0435\u043B\u044B\u0445})$ ]>%%fractions-feminine>;",
81 …e{\u0446\u0435\u043B\u0430\u044F}other{\u0446\u0435\u043B\u044B\u0445})$ ]>%%fractions-feminine>;",
129 "%%fractions-feminine:",
144 …446\u0435\u043B\u043E\u0439}other{\u0446\u0435\u043B\u044B\u0445})$ ]>%%fractions-feminine-genitiv…
185 …446\u0435\u043B\u043E\u0439}other{\u0446\u0435\u043B\u044B\u0445})$ ]>%%fractions-feminine-genitiv…
227 "%%fractions-feminine-genitive:",
242 …446\u0435\u043B\u043E\u0439}other{\u0446\u0435\u043B\u044B\u043C})$ ]>%%fractions-feminine-dative>…
283 …446\u0435\u043B\u043E\u0439}other{\u0446\u0435\u043B\u044B\u043C})$ ]>%%fractions-feminine-dative>…
325 "%%fractions-feminine-dative:",
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/
Dhex_float_test.cpp622 float float_fractions(const std::vector<uint32_t>& fractions) { in float_fractions() argument
624 for (int32_t i : fractions) { in float_fractions()
633 uint32_t normalized_significand(const std::vector<uint32_t>& fractions, in normalized_significand() argument
636 static_cast<float>(ldexp(float_fractions(fractions), exp))) in normalized_significand()
/third_party/skia/third_party/externals/spirv-tools/test/
Dhex_float_test.cpp622 float float_fractions(const std::vector<uint32_t>& fractions) { in float_fractions() argument
624 for (int32_t i : fractions) { in float_fractions()
633 uint32_t normalized_significand(const std::vector<uint32_t>& fractions, in normalized_significand() argument
636 static_cast<float>(ldexp(float_fractions(fractions), exp))) in normalized_significand()
/third_party/spirv-tools/test/
Dhex_float_test.cpp622 float float_fractions(const std::vector<uint32_t>& fractions) { in float_fractions() argument
624 for (int32_t i : fractions) { in float_fractions()
633 uint32_t normalized_significand(const std::vector<uint32_t>& fractions, in normalized_significand() argument
636 static_cast<float>(ldexp(float_fractions(fractions), exp))) in normalized_significand()
/third_party/glslang/gtests/
DHexFloat.cpp583 float float_fractions(const std::vector<uint32_t>& fractions) { in float_fractions() argument
585 for(int32_t i: fractions) { in float_fractions()
594 uint32_t normalized_significand(const std::vector<uint32_t>& fractions, uint32_t exp) { in normalized_significand() argument
596 static_cast<float>(ldexp(float_fractions(fractions), exp))) in normalized_significand()
/third_party/tzdata/
Dtzselect.8.txt31 fractions represent fractional minutes or (if SS is present)

123456