Home
last modified time | relevance | path

Searched refs:decimal (Results 1 – 25 of 1050) sorted by relevance

12345678910>>...42

/external/icu/icu4c/source/data/misc/
Dplurals.txt320 " @integer 0~15, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~1."
325 one{"i = 0 or n = 1 @integer 0, 1 @decimal 0.0~1.0, 0.00~0.04"}
327 " @integer 2~17, 100, 1000, 10000, 100000, 1000000, … @decimal 1.1~2."
334 " 41, 51, 61, 71, 81, 101, 1001, … @decimal 0.1~1.6, 10.1, 100.1, 100"
338 " @integer 0, 2~16, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0"
346 "11 @integer 1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, … @decimal 0.1"
350 " @integer 0, 2~16, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0"
359 "00, 10000, 100000, 1000000, … @decimal 0.0~0.3, 0.5, 0.7, 0.8, 1.0~1"
364 " @integer 4, 6, 9, 14, 16, 19, 24, 26, 104, 1004, … @decimal 0.4, 0."
372 "101, 1001, … @decimal 0.1, 1.0, 1.1, 2.1, 3.1, 4.1, 5.1, 6.1, 7.1, 1"
[all …]
/external/python/cpython3/Lib/test/
Dtest_decimal.py131 self.context = self.decimal.Context()
132 self.readcontext = self.decimal.Context()
173 if self.decimal == C:
244 self.ErrorNames = {'clamped' : self.decimal.Clamped,
245 'conversion_syntax' : self.decimal.InvalidOperation,
246 'division_by_zero' : self.decimal.DivisionByZero,
247 'division_impossible' : self.decimal.InvalidOperation,
248 'division_undefined' : self.decimal.InvalidOperation,
249 'inexact' : self.decimal.Inexact,
250 'invalid_context' : self.decimal.InvalidOperation,
[all …]
Dtest_unicodedata.py94 format(self.db.decimal(char, -1), '.12g'),
131 self.assertEqual(self.db.decimal('A',None), None)
132 self.assertEqual(self.db.decimal('9'), 9)
133 self.assertEqual(self.db.decimal('\u215b', None), None)
134 self.assertEqual(self.db.decimal('\u2468', None), None)
135 self.assertEqual(self.db.decimal('\U00020000', None), None)
136 self.assertEqual(self.db.decimal('\U0001D7FD'), 7)
138 self.assertRaises(TypeError, self.db.decimal)
139 self.assertRaises(TypeError, self.db.decimal, 'xx')
140 self.assertRaises(ValueError, self.db.decimal, 'x')
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue40/
DDogFoodBean.java21 BigDecimal decimal; field in DogFoodBean
24 decimal = BigDecimal.ZERO; in DogFoodBean()
28 return decimal; in getDecimal()
31 public void setDecimal(BigDecimal decimal) { in setDecimal() argument
32 this.decimal = decimal; in setDecimal()
/external/libxml2/result/schemas/
Ddecimal-3_1_0.err1 ./test/schemas/decimal-3_0.xml:12: element val: Schemas validity error : Element 'val': [facet 'tot…
2 ./test/schemas/decimal-3_0.xml:12: element val: Schemas validity error : Element 'val': '0.123' is …
3 ./test/schemas/decimal-3_0.xml:13: element val: Schemas validity error : Element 'val': [facet 'tot…
4 ./test/schemas/decimal-3_0.xml:13: element val: Schemas validity error : Element 'val': '0.023' is …
5 ./test/schemas/decimal-3_0.xml:14: element val: Schemas validity error : Element 'val': [facet 'tot…
6 ./test/schemas/decimal-3_0.xml:14: element val: Schemas validity error : Element 'val': '123' is no…
7 ./test/schemas/decimal-3_0.xml:15: element val: Schemas validity error : Element 'val': [facet 'tot…
8 ./test/schemas/decimal-3_0.xml:15: element val: Schemas validity error : Element 'val': '12.3' is n…
Ddecimal-1_1_0.err1 ./test/schemas/decimal-1_0.xml:16: element val: Schemas validity error : Element 'val': '.' is not …
2 ./test/schemas/decimal-1_0.xml:17: element val: Schemas validity error : Element 'val': '-' is not …
3 ./test/schemas/decimal-1_0.xml:18: element val: Schemas validity error : Element 'val': '+' is not …
4 ./test/schemas/decimal-1_0.xml:19: element val: Schemas validity error : Element 'val': '*' is not …
5 ./test/schemas/decimal-1_0.xml:20: element val: Schemas validity error : Element 'val': '- 1' is no…
6 ./test/schemas/decimal-1_0.xml:21: element val: Schemas validity error : Element 'val': '+ 1' is no…
7 ./test/schemas/decimal-1_0.xml:22: element val: Schemas validity error : Element 'val': '+ 0' is no…
8 ./test/schemas/decimal-1_0.xml:23: element val: Schemas validity error : Element 'val': '- 0' is no…
Ddecimal-2_1_0.err1 ./test/schemas/decimal-2_0.xml:12: element val: Schemas validity error : Element 'val': [facet 'min…
2 ./test/schemas/decimal-2_0.xml:12: element val: Schemas validity error : Element 'val': '-0.1' is n…
3 ./test/schemas/decimal-2_0.xml:13: element val: Schemas validity error : Element 'val': [facet 'min…
4 ./test/schemas/decimal-2_0.xml:13: element val: Schemas validity error : Element 'val': '-1' is not…
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_context.py2 import decimal
14 with decimal.localcontext() as ctx:
16 a = decimal.Decimal(x) / decimal.Decimal(y)
18 b = decimal.Decimal(x) / decimal.Decimal(y ** 2)
/external/freetype/src/psaux/
Dpsconv.c204 FT_Long decimal = 0; in PS_Conv_ToFixed() local
262 if ( divider < 0xCCCCCCCL && decimal < 0xCCCCCCCL ) in PS_Conv_ToFixed()
264 decimal = decimal * 10 + c; in PS_Conv_ToFixed()
299 if ( !integral && !decimal ) in PS_Conv_ToFixed()
313 if ( decimal >= 0xCCCCCCCL ) in PS_Conv_ToFixed()
320 decimal *= 10; in PS_Conv_ToFixed()
331 decimal /= 10; in PS_Conv_ToFixed()
333 if ( !integral && !decimal ) in PS_Conv_ToFixed()
339 if ( decimal ) in PS_Conv_ToFixed()
341 decimal = FT_DivFix( decimal, divider ); in PS_Conv_ToFixed()
[all …]
/external/python/cpython2/Doc/tutorial/
Dfloatingpoint.rst11 fractions. For example, the decimal fraction ::
23 Unfortunately, most decimal fractions cannot be represented exactly as binary
24 fractions. A consequence is that, in general, the decimal floating-point
46 decimal value 0.1 cannot be represented exactly as a base 2 fraction. In base
54 for a Python float, so the value stored internally when you enter the decimal
62 decimal fraction, because of the way that floats are displayed at the
63 interpreter prompt. Python only prints a decimal approximation to the true
64 decimal value of the binary approximation stored by the machine. If Python
65 were to print the true decimal value of the binary approximation stored for
92 value 2.675 to two decimal places, you get this ::
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMacroProps.java31 public DecimalSeparatorDisplay decimal; field in MacroProps
67 if (decimal == null) in fallback()
68 decimal = fallback.decimal; in fallback()
92 decimal, in hashCode()
119 && Objects.equals(decimal, other.decimal) in equals()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
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()
/external/mesa3d/src/util/
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()
/external/icu/icu4c/source/test/testdata/
Dnumberpermutationtest.txt1012 compact-short percent decimal-always
1026 compact-short currency/EUR decimal-always
1040 compact-short measure-unit/length-furlong decimal-always
1054 scientific/+ee/sign-always percent decimal-always
1068 scientific/+ee/sign-always currency/EUR decimal-always
1082 scientific/+ee/sign-always measure-unit/length-furlong decimal-always
1656 compact-short unit-width-narrow decimal-always
1670 compact-short unit-width-full-name decimal-always
1684 scientific/+ee/sign-always unit-width-narrow decimal-always
1698 scientific/+ee/sign-always unit-width-full-name decimal-always
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/
Dnumberpermutationtest.txt1012 compact-short percent decimal-always
1026 compact-short currency/EUR decimal-always
1040 compact-short measure-unit/length-furlong decimal-always
1054 scientific/+ee/sign-always percent decimal-always
1068 scientific/+ee/sign-always currency/EUR decimal-always
1082 scientific/+ee/sign-always measure-unit/length-furlong decimal-always
1656 compact-short unit-width-narrow decimal-always
1670 compact-short unit-width-full-name decimal-always
1684 scientific/+ee/sign-always unit-width-narrow decimal-always
1698 scientific/+ee/sign-always unit-width-full-name decimal-always
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/
Dnumberpermutationtest.txt1012 compact-short percent decimal-always
1026 compact-short currency/EUR decimal-always
1040 compact-short measure-unit/length-furlong decimal-always
1054 scientific/+ee/sign-always percent decimal-always
1068 scientific/+ee/sign-always currency/EUR decimal-always
1082 scientific/+ee/sign-always measure-unit/length-furlong decimal-always
1656 compact-short unit-width-narrow decimal-always
1670 compact-short unit-width-full-name decimal-always
1684 scientific/+ee/sign-always unit-width-narrow decimal-always
1698 scientific/+ee/sign-always unit-width-full-name decimal-always
[all …]
/external/python/cpython3/Doc/tutorial/
Dfloatingpoint.rst15 fractions. For example, the decimal fraction ::
27 Unfortunately, most decimal fractions cannot be represented exactly as binary
28 fractions. A consequence is that, in general, the decimal floating-point
50 decimal value 0.1 cannot be represented exactly as a base 2 fraction. In base
63 displayed. Python only prints a decimal approximation to the true decimal
65 Python were to print the true decimal value of the binary approximation stored
80 Interestingly, there are many different decimal numbers that share the same
84 approximated by ``3602879701896397 / 2 ** 55``. Since all of these decimal
143 tasks, but you do need to keep in mind that it's not decimal arithmetic and
148 display of your final results to the number of decimal digits you expect.
[all …]
/external/python/cpython2/Doc/library/
Dnumeric.rst12 interested in decimal accuracy than in speed, the :mod:`decimal` module supports
13 exact representations of decimal numbers.
23 decimal.rst
/external/libxml2/
Dxmlschemastypes.c125 xmlSchemaValDecimal decimal; member
254 ret->val->value.decimal.lo = value; in xmlSchemaNewMinLengthFacet()
2370 &v->value.decimal.lo, in xmlSchemaValAtomicType()
2371 &v->value.decimal.mi, in xmlSchemaValAtomicType()
2372 &v->value.decimal.hi); in xmlSchemaValAtomicType()
2378 v->value.decimal.sign = neg; in xmlSchemaValAtomicType()
2381 v->value.decimal.total = 1; in xmlSchemaValAtomicType()
2383 v->value.decimal.total = len; in xmlSchemaValAtomicType()
2385 v->value.decimal.frac = 0; in xmlSchemaValAtomicType()
2387 v->value.decimal.frac = len - integ; in xmlSchemaValAtomicType()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-objdump/
Dmalformed-archives.test8 …alformed archive (characters in size field in archive header are not all decimal numbers: '10%' fo…
14 …alformed archive (characters in size field in archive header are not all decimal numbers: '1%' for…
44 …malformed archive (long name length characters after the #1/ are not all decimal numbers: '@123$' …
55 …malformed archive (long name offset characters after the '/' are not all decimal numbers: '&a25*' …
66 …malformed archive (characters in UID field in archive header are not all decimal numbers: '~97&' f…
72 …malformed archive (characters in GID field in archive header are not all decimal numbers: '#55!' f…
78 …ed archive (characters in AccessMode field in archive header are not all decimal numbers: 'Feed' f…
83 # bogus14: -rw-r--r--124/0 102 (date: "1foobar273" contains non-decimal chars) hello.c
88 … archive (characters in LastModified field in archive header are not all decimal numbers: '1foobar…
/external/cldr/specs/rfc/
Ddraft-davis-t-langtag-ext.css70 …content: counter(sec1, decimal) "." counter(sec2, decimal) "." counter(sec3,decimal) " " attr(titl…
78 content: counter(sec1, decimal) "." counter(sec2, decimal) " " attr(title);
86 content: counter(sec1, decimal) " " attr(title);
/external/python/cpython2/Lib/json/tests/
Dtest_decode.py1 import decimal
9 rval = self.loads('1.1', parse_float=decimal.Decimal)
10 self.assertTrue(isinstance(rval, decimal.Decimal))
11 self.assertEqual(rval, decimal.Decimal('1.1'))
/external/python/cpython3/Doc/library/
Dnumeric.rst11 mathematical functions for floating-point and complex numbers. The :mod:`decimal`
12 module supports exact representations of decimal numbers, using arbitrary precision
23 decimal.rst
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
DDecimalQuantity_SimpleStorage.java234 public DecimalQuantity_SimpleStorage(BigDecimal decimal) {
235 setToBigDecimal(decimal);
243 public void setToBigDecimal(BigDecimal decimal) {
244 if (decimal.compareTo(BigDecimal.ZERO) < 0) {
246 decimal = decimal.negate();
250 if (decimal.compareTo(BigDecimal.ZERO) == 0) {
253 fallback = decimal;
817 private static int precisionBigDecimal(BigDecimal decimal) {
818 if (decimal.compareTo(BigDecimal.ZERO) == 0) {
821 return decimal.precision();
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/
DDecimalQuantity_SimpleStorage.java237 public DecimalQuantity_SimpleStorage(BigDecimal decimal) {
238 setToBigDecimal(decimal);
246 public void setToBigDecimal(BigDecimal decimal) {
247 if (decimal.compareTo(BigDecimal.ZERO) < 0) {
249 decimal = decimal.negate();
253 if (decimal.compareTo(BigDecimal.ZERO) == 0) {
256 fallback = decimal;
820 private static int precisionBigDecimal(BigDecimal decimal) {
821 if (decimal.compareTo(BigDecimal.ZERO) == 0) {
824 return decimal.precision();
[all …]

12345678910>>...42