Home
last modified time | relevance | path

Searched refs:digits (Results 1 – 25 of 827) sorted by relevance

12345678910>>...34

/external/icu/icu4c/source/test/intltest/
Dnumberformat2test.cpp135 DigitList &digits,
148 const DigitList &digits);
152 const VisibleDigits &digits);
156 const VisibleDigitsWithExponent &digits);
160 const VisibleDigits &digits,
167 const VisibleDigitsWithExponent &digits,
186 int64_t expected, const VisibleDigits &digits);
188 double expected, const VisibleDigits &digits);
393 DigitList digits; in TestQuantize() local
396 digits.set((int32_t)1); in TestQuantize()
[all …]
/external/dynamic_depth/internal/strings/
Dnumbers.cc315 uint32 digits; in FastUInt32ToBufferLeft() local
323 digits = u / 100000000; // 100,000,000 in FastUInt32ToBufferLeft()
324 u -= digits * 100000000; in FastUInt32ToBufferLeft()
325 PutTwoDigits(digits, buffer); in FastUInt32ToBufferLeft()
328 digits = u / 1000000; // 1,000,000 in FastUInt32ToBufferLeft()
329 u -= digits * 1000000; in FastUInt32ToBufferLeft()
330 PutTwoDigits(digits, buffer); in FastUInt32ToBufferLeft()
333 digits = u / 10000; // 10,000 in FastUInt32ToBufferLeft()
334 u -= digits * 10000; in FastUInt32ToBufferLeft()
335 PutTwoDigits(digits, buffer); in FastUInt32ToBufferLeft()
[all …]
/external/python/cpython3/Modules/_decimal/tests/
Drandfloat.py33 digits, exponent = n, e
34 while digits < 10**20:
35 s = '{}e{}'.format(digits, exponent)
38 s = '{}e{}'.format(digits * 10**40, exponent - 40)
40 digits *= 2
44 digits, exponent = n, e
45 while digits < 10**20:
46 s = '{}e{}'.format(digits, exponent)
49 s = '{}e{}'.format(digits * 10**40, exponent - 40)
51 digits *= 5
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDigitList_Android.java83 public byte[] digits = new byte[MAX_LONG_DIGITS]; field in DigitList_Android
86 if (digitCapacity > digits.length) { in ensureCapacity()
88 System.arraycopy(digits, 0, newDigits, 0, digitsToCopy); in ensureCapacity()
89 digits = newDigits; in ensureCapacity()
98 for (int i=0; i<count; ++i) if (digits[i] != '0') return false; in isZero()
120 digits[count++] = (byte) digit; in append()
124 return (byte) (digits[i] - '0'); in getDigitValue()
136 for (int i = 0; i < count; ++i) temp.append((char)(digits[i])); in getDouble()
161 temp.append((i < count) ? (char)(digits[i]) : '0'); in getLong()
200 text[i+1] = (char)digits[i];
[all …]
DDecimalFormatSymbols.java213 return digits.clone(); in getDigits()
230 digits = digits.clone(); in setZeroDigit()
234 digits[0] = zeroDigit; in setZeroDigit()
240 digits[i] = d; in setZeroDigit()
356 this.digits = DEF_DIGIT_CHARS_ARRAY; in setDigitStrings()
359 this.digits = tmpDigits; in setDigitStrings()
1131 if ( other.digits == null ) { in equals()
1133 if (digits[i] != other.zeroDigit + i) { in equals()
1137 } else if (!Arrays.equals(digits,other.digits)) { in equals()
1168 int result = digits[0]; in hashCode()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDigitList_Android.java81 public byte[] digits = new byte[MAX_LONG_DIGITS]; field in DigitList_Android
84 if (digitCapacity > digits.length) { in ensureCapacity()
86 System.arraycopy(digits, 0, newDigits, 0, digitsToCopy); in ensureCapacity()
87 digits = newDigits; in ensureCapacity()
96 for (int i=0; i<count; ++i) if (digits[i] != '0') return false; in isZero()
118 digits[count++] = (byte) digit; in append()
122 return (byte) (digits[i] - '0'); in getDigitValue()
134 for (int i = 0; i < count; ++i) temp.append((char)(digits[i])); in getDouble()
159 temp.append((i < count) ? (char)(digits[i]) : '0'); in getLong()
198 text[i+1] = (char)digits[i];
[all …]
DDecimalFormatSymbols.java228 return digits.clone(); in getDigits()
247 digits = digits.clone(); in setZeroDigit()
251 digits[0] = zeroDigit; in setZeroDigit()
257 digits[i] = d; in setZeroDigit()
375 this.digits = DEF_DIGIT_CHARS_ARRAY; in setDigitStrings()
378 this.digits = tmpDigits; in setDigitStrings()
1223 if ( other.digits == null ) { in equals()
1225 if (digits[i] != other.zeroDigit + i) { in equals()
1229 } else if (!Arrays.equals(digits,other.digits)) { in equals()
1261 int result = digits[0]; in hashCode()
[all …]
/external/icu/icu4c/source/i18n/
DdecNumber.cpp389 dn->digits=decGetDigits(dn->lsu, static_cast<int32_t>(up - dn->lsu)); in uprv_decNumberFromUInt32()
409 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0) ; /* bad */ in uprv_decNumberToInt32()
422 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToInt32()
444 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0 in uprv_decNumberToUInt32()
458 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToUInt32()
603 if (d>set->digits-1) { in uprv_decNumberFromString()
607 if (d>set->digits) break; in uprv_decNumberFromString()
676 if (d<=set->digits) res=dn->lsu; /* fits into supplied decNumber */ in uprv_decNumberFromString()
719 dn->digits=d; in uprv_decNumberFromString()
722 if (d>set->digits) { in uprv_decNumberFromString()
[all …]
/external/python/cpython2/Lib/test/
Dtest_strtod.py129 digits, exponent = n, e
130 while digits < 10**20:
131 s = '{}e{}'.format(digits, exponent)
134 s = '{}e{}'.format(digits * 10**40, exponent - 40)
136 digits *= 2
140 digits, exponent = n, e
141 while digits < 10**20:
142 s = '{}e{}'.format(digits, exponent)
145 s = '{}e{}'.format(digits * 10**40, exponent - 40)
147 digits *= 5
[all …]
Dtest_fpformat.py23 def checkFix(self, n, digits): argument
24 result = fix(n, digits)
27 expected = "%.*f" % (digits, float(n))
31 def checkSci(self, n, digits): argument
32 result = sci(n, digits)
35 expected = "%.*e" % (digits, float(n))
/external/python/cpython3/Lib/test/
Dtest_strtod.py128 digits, exponent = n, e
129 while digits < 10**20:
130 s = '{}e{}'.format(digits, exponent)
133 s = '{}e{}'.format(digits * 10**40, exponent - 40)
135 digits *= 2
139 digits, exponent = n, e
140 while digits < 10**20:
141 s = '{}e{}'.format(digits, exponent)
144 s = '{}e{}'.format(digits * 10**40, exponent - 40)
146 digits *= 5
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/
DUtils.java66 return String.valueOf(zh.digits[(int)n]); in chineseNumber()
71 char[] digits = String.valueOf(n).toCharArray(); in chineseNumber() local
79 for (int i = digits.length, u = -1, l = -1; --i >= 0;) { in chineseNumber()
94 int d = digits[i] - '0'; in chineseNumber()
102 buf[--x] = zh.digits[0]; in chineseNumber()
108 buf[--x] = zh.digits[d]; in chineseNumber()
128 if (buf[i] == zh.digits[0] && !last) { in chineseNumber()
147 if (buf[i+1] != '*' && buf[i+1] != zh.digits[0]) { in chineseNumber()
148 buf[i] = zh.digits[0]; in chineseNumber()
160 if (buf[i] != zh.digits[2]) continue; in chineseNumber()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
DUtils.java62 return String.valueOf(zh.digits[(int)n]); in chineseNumber()
67 char[] digits = String.valueOf(n).toCharArray(); in chineseNumber() local
75 for (int i = digits.length, u = -1, l = -1; --i >= 0;) { in chineseNumber()
90 int d = digits[i] - '0'; in chineseNumber()
98 buf[--x] = zh.digits[0]; in chineseNumber()
104 buf[--x] = zh.digits[d]; in chineseNumber()
124 if (buf[i] == zh.digits[0] && !last) { in chineseNumber()
143 if (buf[i+1] != '*' && buf[i+1] != zh.digits[0]) { in chineseNumber()
144 buf[i] = zh.digits[0]; in chineseNumber()
156 if (buf[i] != zh.digits[2]) continue; in chineseNumber()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DDateNumberFormat.java38 private char[] digits; field in DateNumberFormat
93 digits = new char[10]; in initialize()
94 System.arraycopy(elems, 0, digits, 0, 10); in initialize()
95 zeroDigit = digits[0]; in initialize()
131 if (digits == null) { in setZeroDigit()
132 digits = new char[10]; in setZeroDigit()
134 digits[0] = zero; in setZeroDigit()
136 digits[i] = (char)(zero+i); in setZeroDigit()
141 return digits.clone(); in getDigits()
168 decimalBuf[index] = digits[(number % 10)]; in format()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DDateNumberFormat.java34 private char[] digits; field in DateNumberFormat
89 digits = new char[10]; in initialize()
90 System.arraycopy(elems, 0, digits, 0, 10); in initialize()
91 zeroDigit = digits[0]; in initialize()
127 if (digits == null) { in setZeroDigit()
128 digits = new char[10]; in setZeroDigit()
130 digits[0] = zero; in setZeroDigit()
132 digits[i] = (char)(zero+i); in setZeroDigit()
137 return digits.clone(); in getDigits()
164 decimalBuf[index] = digits[(number % 10)]; in format()
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DNumberingSystemsTest.java29 String digits = parts.getAttributeValue(2, "digits"); in TestFile() local
30 if (digits == null) { in TestFile()
34 UTF16.countCodePoint(digits)); in TestFile()
37 for (int i = 0; i < digits.length(); i += UTF16.getCharCount(cp)) { in TestFile()
38 cp = UTF16.charAt(digits, i); in TestFile()
45 if (!script.containsAll(digits)) { in TestFile()
47 && digits.equals("0123456789") in TestFile()
49 && digits in TestFile()
54 + digits); in TestFile()
/external/mesa3d/src/util/xmlpool/
Dgen_xmlpool.py60 digits = 0
73 digits = digits + 1
75 digits = 2
76 if digits >= 2:
83 digits = digits + 1
85 digits = 3
86 if digits >= 3:
98 digits = 1
100 digits = 2
104 digits = 0
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DFixASCIIControlsReader.java41 private int digits = 0; field in FixASCIIControlsReader
138 digits = 0; in processChar()
144 digits = 1; in processChar()
157 digits++; in processChar()
158 if (digits <= 5) in processChar()
184 digits++; in processChar()
185 if (digits <= 4) in processChar()
/external/icu/icu4c/source/data/rbnf/
Des_419.txt14 "%digits-ordinal-masculine-adjective:",
17 "%digits-ordinal-masculine:",
20 "%digits-ordinal-feminine:",
23 "%digits-ordinal:",
24 "0: =%digits-ordinal-masculine=;",
Dzh_Hant.txt7 "%digits-ordinal:",
16 "1001: =%%spellout-numbering-year-digits=;",
18 "2001: =%%spellout-numbering-year-digits=;",
20 "3001: =%%spellout-numbering-year-digits=;",
22 "4001: =%%spellout-numbering-year-digits=;",
24 "5001: =%%spellout-numbering-year-digits=;",
26 "6001: =%%spellout-numbering-year-digits=;",
28 "7001: =%%spellout-numbering-year-digits=;",
30 "8001: =%%spellout-numbering-year-digits=;",
32 "9001: =%%spellout-numbering-year-digits=;",
[all …]
/external/antlr/tool/src/main/java/org/antlr/codegen/
DJavaScriptTarget.java67 private void writeHexWithPadding(StringBuffer buf, String digits) { in writeHexWithPadding() argument
68 digits = digits.toUpperCase(); in writeHexWithPadding()
69 int padding = 8 - digits.length(); in writeHexWithPadding()
74 buf.append(digits); in writeHexWithPadding()
/external/protobuf/src/google/protobuf/stubs/
Dstrutil.cc969 int digits; in FastUInt32ToBufferLeft() local
978 digits = u / 100000000; // 100,000,000 in FastUInt32ToBufferLeft()
979 ASCII_digits = two_ASCII_digits[digits]; in FastUInt32ToBufferLeft()
984 u -= digits * 100000000; // 100,000,000 in FastUInt32ToBufferLeft()
986 digits = u / 1000000; // 1,000,000 in FastUInt32ToBufferLeft()
987 ASCII_digits = two_ASCII_digits[digits]; in FastUInt32ToBufferLeft()
992 u -= digits * 1000000; // 1,000,000 in FastUInt32ToBufferLeft()
994 digits = u / 10000; // 10,000 in FastUInt32ToBufferLeft()
995 ASCII_digits = two_ASCII_digits[digits]; in FastUInt32ToBufferLeft()
1000 u -= digits * 10000; // 10,000 in FastUInt32ToBufferLeft()
[all …]
Dstrutil.h615 char digits[kFastToBufferSize]; member
621 : piece_data_(digits), in AlphaNum()
622 piece_size_(FastInt32ToBufferLeft(i32, digits) - &digits[0]) {} in AlphaNum()
624 : piece_data_(digits), in AlphaNum()
625 piece_size_(FastUInt32ToBufferLeft(u32, digits) - &digits[0]) {} in AlphaNum()
627 : piece_data_(digits), in AlphaNum()
628 piece_size_(FastInt64ToBufferLeft(i64, digits) - &digits[0]) {} in AlphaNum()
630 : piece_data_(digits), in AlphaNum()
631 piece_size_(FastUInt64ToBufferLeft(u64, digits) - &digits[0]) {} in AlphaNum()
634 : piece_data_(digits), piece_size_(strlen(FloatToBuffer(f, digits))) {} in AlphaNum()
[all …]
/external/fonttools/Lib/fontTools/
Dagl.py848 digits = match.group(1)
849 if len(digits) % 4 != 0:
851 chars = [int(digits[i : i + 4], 16)
852 for i in range(0, len(digits), 4)]
867 digits = match.group(1)
869 value = int(digits, 16)
/external/python/cpython3/Python/
Dpystrtod.c1006 char *digits, *digits_end; in format_float_short() local
1014 digits = _Py_dg_dtoa(d, mode, precision, &decpt_as_int, &sign, in format_float_short()
1019 if (digits == NULL) { in format_float_short()
1024 assert(digits_end != NULL && digits_end >= digits); in format_float_short()
1025 digits_len = digits_end - digits; in format_float_short()
1027 if (digits_len && !Py_ISDIGIT(digits[0])) { in format_float_short()
1033 if (digits[0] == 'n' || digits[0] == 'N') in format_float_short()
1051 if (digits[0] == 'i' || digits[0] == 'I') { in format_float_short()
1058 else if (digits[0] == 'n' || digits[0] == 'N') { in format_float_short()
1196 strncpy(p, digits, decpt-0); in format_float_short()
[all …]

12345678910>>...34