Home
last modified time | relevance | path

Searched refs:decimal (Results 1 - 25 of 126) sorted by relevance

123456

/third_party/python/Lib/test/
H A Dtest_decimal.py19 http://speleotrove.com/decimal/dectest.zip
53 C = import_fresh_module('decimal', fresh=['_decimal'])
54 P = import_fresh_module('decimal', blocked=['_decimal'])
55 import decimal as orig_sys_decimal
57 # fractions module must import the correct decimal module.
59 sys.modules['decimal'] = P
61 sys.modules['decimal'] = C
63 sys.modules['decimal'] = orig_sys_decimal
140 self.context = self.decimal.Context()
141 self.readcontext = self.decimal
492 decimal = C global() variable in CIBMTestCases
494 decimal = P global() variable in PyIBMTestCases
842 decimal = C global() variable in CExplicitConstructionTest
844 decimal = P global() variable in PyExplicitConstructionTest
924 decimal = C global() variable in CImplicitConstructionTest
926 decimal = P global() variable in PyImplicitConstructionTest
1266 decimal = C global() variable in CFormatTest
1268 decimal = P global() variable in PyFormatTest
1566 decimal = C global() variable in CArithmeticOperatorsTest
1568 decimal = P global() variable in PyArithmeticOperatorsTest
1703 decimal = C global() variable in CThreadingTest
1706 decimal = P global() variable in PyThreadingTest
2525 decimal = C global() variable in CUsabilityTest
2527 decimal = P global() variable in PyUsabilityTest
2888 decimal = C global() variable in CPythonAPItests
2890 decimal = P global() variable in PyPythonAPItests
3639 decimal = C global() variable in CContextAPItests
3641 decimal = P global() variable in PyContextAPItests
3804 decimal = C global() variable in CContextWithStatement
3806 decimal = P global() variable in PyContextWithStatement
4076 decimal = C global() variable in CContextFlags
4078 decimal = P global() variable in PyContextFlags
4161 decimal = C global() variable in CSpecialContexts
4163 decimal = P global() variable in PySpecialContexts
4228 decimal = C global() variable in CContextInputValidation
4230 decimal = P global() variable in PyContextInputValidation
4342 decimal = C global() variable in CContextSubclassing
4344 decimal = P global() variable in PyContextSubclassing
4634 decimal = C global() variable in CCoverage
4636 decimal = P global() variable in PyCoverage
[all...]
H A Dtest_unicodedata.py88 format(self.db.decimal(char, -1), '.12g'),
132 self.assertEqual(self.db.decimal('A',None), None)
133 self.assertEqual(self.db.decimal('9'), 9)
134 self.assertEqual(self.db.decimal('\u215b', None), None)
135 self.assertEqual(self.db.decimal('\u2468', None), None)
136 self.assertEqual(self.db.decimal('\U00020000', None), None)
137 self.assertEqual(self.db.decimal('\U0001D7FD'), 7)
139 self.assertRaises(TypeError, self.db.decimal)
140 self.assertRaises(TypeError, self.db.decimal, 'xx')
141 self.assertRaises(ValueError, self.db.decimal, '
[all...]
H A Dtest_time.py3 import decimal namespace
47 # (PyTime rounding method, decimal rounding method)
48 (_PyTime.ROUND_FLOOR, decimal.ROUND_FLOOR),
49 (_PyTime.ROUND_CEILING, decimal.ROUND_CEILING),
50 (_PyTime.ROUND_HALF_EVEN, decimal.ROUND_HALF_EVEN),
51 (_PyTime.ROUND_UP, decimal.ROUND_UP),
852 with decimal.localcontext() as context:
887 d = decimal.Decimal(x)
950 denom = decimal.Decimal(denominator)
953 d = decimal
[all...]
/third_party/python/Lib/test/test_asyncio/
H A Dtest_context.py2 import decimal namespace
10 @unittest.skipUnless(decimal.HAVE_CONTEXTVAR, "decimal is built with a thread-local context")
15 with decimal.localcontext() as ctx:
17 a = decimal.Decimal(x) / decimal.Decimal(y)
19 b = decimal.Decimal(x) / decimal.Decimal(y ** 2)
/third_party/skia/third_party/externals/freetype/src/psaux/
H A Dpsconv.c37 /* digits (both decimal and non-decimal) into numbers. */
203 FT_Long decimal = 0; in FT_LOCAL_DEF() local
242 /* read the decimal part */ in FT_LOCAL_DEF()
261 if ( divider < 0xCCCCCCCL && decimal < 0xCCCCCCCL ) in FT_LOCAL_DEF()
263 decimal = decimal * 10 + c; in FT_LOCAL_DEF()
298 if ( !integral && !decimal ) in FT_LOCAL_DEF()
312 if ( decimal >= 0xCCCCCCCL ) in FT_LOCAL_DEF()
319 decimal * in FT_LOCAL_DEF()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
H A DMacroProps.java35 public DecimalSeparatorDisplay decimal; field in MacroProps
71 if (decimal == null) in fallback()
72 decimal = fallback.decimal; in fallback()
96 decimal, in hashCode()
123 && Objects.equals(decimal, other.decimal) in equals()
/third_party/mesa3d/src/util/
H A Dformat_r11g11b10f.h121 float scale, decimal; in uf11_to_f32() local
128 decimal = 1.0f + (float) mantissa / 64; in uf11_to_f32()
129 f32.f = scale * decimal; in uf11_to_f32()
203 float scale, decimal; in uf10_to_f32() local
211 decimal = 1.0f + (float) mantissa / 32; in uf10_to_f32()
212 f32.f = scale * decimal; in uf10_to_f32()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
H A DMacroProps.java33 public DecimalSeparatorDisplay decimal; field in MacroProps
74 if (decimal == null) in fallback()
75 decimal = fallback.decimal; in fallback()
103 decimal, in hashCode()
133 && Objects.equals(decimal, other.decimal) in equals()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
H A DDecimalQuantity_SimpleStorage.java35 // the decimal point in their respective directions.
68 // If the decimal can't fit into the long, fall back to a BigDecimal.
240 public DecimalQuantity_SimpleStorage(BigDecimal decimal) { in DecimalQuantity_SimpleStorage() argument
241 setToBigDecimal(decimal); in DecimalQuantity_SimpleStorage()
249 public void setToBigDecimal(BigDecimal decimal) { in setToBigDecimal() argument
250 if (decimal.compareTo(BigDecimal.ZERO) < 0) { in setToBigDecimal()
252 decimal = decimal.negate(); in setToBigDecimal()
256 if (decimal.compareTo(BigDecimal.ZERO) == 0) { in setToBigDecimal()
259 fallback = decimal; in setToBigDecimal()
844 precisionBigDecimal(BigDecimal decimal) precisionBigDecimal() argument
859 scaleBigDecimal(BigDecimal decimal) scaleBigDecimal() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/impl/number/
H A DDecimalQuantity_SimpleStorage.java38 // the decimal point in their respective directions.
71 // If the decimal can't fit into the long, fall back to a BigDecimal.
243 public DecimalQuantity_SimpleStorage(BigDecimal decimal) { in DecimalQuantity_SimpleStorage() argument
244 setToBigDecimal(decimal); in DecimalQuantity_SimpleStorage()
252 public void setToBigDecimal(BigDecimal decimal) { in setToBigDecimal() argument
253 if (decimal.compareTo(BigDecimal.ZERO) < 0) { in setToBigDecimal()
255 decimal = decimal.negate(); in setToBigDecimal()
259 if (decimal.compareTo(BigDecimal.ZERO) == 0) { in setToBigDecimal()
262 fallback = decimal; in setToBigDecimal()
837 precisionBigDecimal(BigDecimal decimal) precisionBigDecimal() argument
852 scaleBigDecimal(BigDecimal decimal) scaleBigDecimal() argument
[all...]
/third_party/python/Lib/test/test_json/
H A Dtest_decode.py1 import decimal namespace
10 rval = self.loads('1.1', parse_float=decimal.Decimal)
11 self.assertTrue(isinstance(rval, decimal.Decimal))
12 self.assertEqual(rval, decimal.Decimal('1.1'))
/third_party/python/Lib/
H A Dfractions.py6 from decimal import Decimal
31 (?:\.(?P<decimal>d*|\d+(_\d+)*))? # an optional fractional part
83 >>> Fraction('-47e-2') # string may include a decimal exponent
123 decimal = m.group('decimal')
124 if decimal:
125 decimal = decimal.replace('_', '')
126 scale = 10**len(decimal)
127 numerator = numerator * scale + int(decimal)
[all...]
/third_party/ffmpeg/libavfilter/
H A Daf_vibrato.c75 double integer, decimal; in filter_frame() local
76 decimal = modf(s->depth * s->wave_table[s->wave_table_index], &integer); in filter_frame()
99 dst[n] = buf[samp1_index] + (decimal * (buf[samp2_index] - buf[samp1_index])); in filter_frame()
/third_party/node/tools/inspector_protocol/jinja2/
H A Dtests.py16 import decimal namespace
92 return isinstance(value, integer_types + (float, complex, decimal.Decimal))
/third_party/python/Tools/importbench/
H A Dimportbench.py8 import decimal namespace
97 decimal_wo_bytecode = _wo_bytecode(decimal)
132 decimal_writing_bytecode = _writing_bytecode(decimal)
162 decimal_using_bytecode = _using_bytecode(decimal)
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
H A DNumberFormatterSettings.java178 * <li>Round to 3 decimal places: "3.142"
262 * Specifies the minimum and maximum number of digits to render before the decimal mark.
289 * Specifies the symbols (decimal separator, grouping separator, percent sign, numerals, etc.) to use
422 * Sets the decimal separator display strategy. This affects integer numbers with no fraction part.
434 * NumberFormatter.with().decimal(DecimalSeparatorDisplay.ALWAYS)
438 * The default is AUTO decimal separator display.
441 * The decimal separator display strategy to use when rendering numbers.
445 public T decimal(DecimalSeparatorDisplay style) { in decimal() method in NumberFormatterSettings
603 if (macros.decimal == null) { in resolve()
604 macros.decimal in resolve()
[all...]
H A DNumberFormatterImpl.java306 if (macros.decimal != null) { in macrosToMicroGenerator()
307 micros.decimal = macros.decimal; in macrosToMicroGenerator()
309 micros.decimal = DecimalSeparatorDisplay.AUTO; in macrosToMicroGenerator()
430 // Add the decimal point in writeNumber()
432 || micros.decimal == DecimalSeparatorDisplay.ALWAYS) { in writeNumber()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DIntlTestDecimalFormatSymbolsC.java59 char decimal = en.getDecimalSeparator(); in TestSymbols()
60 fr.setDecimalSeparator(decimal); in TestSymbols()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DIntlTestDecimalFormatSymbolsC.java62 char decimal = en.getDecimalSeparator(); in TestSymbols()
63 fr.setDecimalSeparator(decimal); in TestSymbols()
/third_party/node/deps/v8/third_party/jinja2/
H A Dtests.py3 import decimal namespace
127 return isinstance(value, integer_types + (float, complex, decimal.Decimal))
/third_party/skia/third_party/externals/jinja2/
H A Dtests.py3 import decimal namespace
127 return isinstance(value, integer_types + (float, complex, decimal.Decimal))
/third_party/vk-gl-cts/external/amber/src/tools/
H A Damber-syntax.vim12 " Floating point number with decimal no E or e (+,-)
16 " Floating point like number with E and no decimal point (+,-)
20 " Floating point like number with E and decimal point (+,-)
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
H A DNumberFormatterImpl.java345 if (macros.decimal != null) { in macrosToMicroGenerator()
346 micros.decimal = macros.decimal; in macrosToMicroGenerator()
348 micros.decimal = DecimalSeparatorDisplay.AUTO; in macrosToMicroGenerator()
525 // Add the decimal point in writeNumber()
527 || micros.decimal == DecimalSeparatorDisplay.ALWAYS) { in writeNumber()
/third_party/icu/icu4c/source/i18n/
H A Dnumber_formatimpl.cpp325 if (macros.decimal != UNUM_DECIMAL_SEPARATOR_COUNT) { in macrosToMicroGenerator()
326 fMicros.decimal = macros.decimal; in macrosToMicroGenerator()
328 fMicros.decimal = UNUM_DECIMAL_SEPARATOR_AUTO; in macrosToMicroGenerator()
533 // Add the decimal point in writeNumber()
534 if (quantity.getLowerDisplayMagnitude() < 0 || micros.decimal == UNUM_DECIMAL_SEPARATOR_ALWAYS) { in writeNumber()
/third_party/node/deps/icu-small/source/i18n/
H A Dnumber_formatimpl.cpp325 if (macros.decimal != UNUM_DECIMAL_SEPARATOR_COUNT) { in macrosToMicroGenerator()
326 fMicros.simple.decimal = macros.decimal; in macrosToMicroGenerator()
328 fMicros.simple.decimal = UNUM_DECIMAL_SEPARATOR_AUTO; in macrosToMicroGenerator()
547 // Add the decimal point in writeNumber()
548 if (quantity.getLowerDisplayMagnitude() < 0 || micros.decimal == UNUM_DECIMAL_SEPARATOR_ALWAYS) { in writeNumber()

Completed in 237 milliseconds

123456