Searched refs:digits (Results 1 - 25 of 40) sorted by relevance

12

/openjdk7/jdk/src/share/classes/java/text/
H A DDigitList.java56 * precision to represent all digits of a long.
59 * which are the digits radix 10, from '0' to '9'. It also has a radix
62 * derived by placing all the digits of the list to the right of the
75 * The maximum number of significant digits in an IEEE 754 double, that
76 * is, in a Java double. This must not be increased, or garbage digits
85 * digits[decimalAt]. If decimalAt is < 0, then leading zeros between
87 * is > count, then trailing zeros between the digits[count-1] and the
91 * f is a value 0.1 <= f < 1 arrived at by placing the digits in Digits to
97 * digits present in digits[]
104 public char[] digits = new char[MAX_COUNT]; field in class:DigitList
[all...]
H A DDecimalFormat.java61 * locale, including support for Western, Arabic, and Indic digits. It also
134 * serves only to specify the negative prefix and suffix; the number of digits,
135 * minimal digits, and other characteristics are all the same as the positive
139 * <p>The prefixes, suffixes, and various symbols used for infinity, digits,
152 * of digits between the grouping characters, such as 3 for 100,000,000 or 4 for
263 * <li>The minimum and maximum number of integer digits are interpreted
267 * <li>If the maximum number of integer digits is greater than their minimum number
269 * number of integer digits, and the minimum number of integer digits to be
276 * <li>Otherwise, the minimum number of integer digits i
1404 subparse(String text, ParsePosition parsePosition, String positivePrefix, String negativePrefix, DigitList digits, boolean isExponent, boolean status[]) argument
[all...]
/openjdk7/jdk/test/java/util/Currency/
H A DBug4512215.java50 int digits) {
51 testCurrencyDefined(currencyCode, digits);
60 private static void testCurrencyDefined(String currencyCode, int digits) { argument
62 if (currency.getDefaultFractionDigits() != digits) {
64 + "] expected: " + digits
49 testCountryCurrency(String country, String currencyCode, int digits) argument
H A DValidateISO4217.java185 int numericCode, int digits, int index) {
189 testCurrencyDefined(currencyCode, numericCode, digits);
214 static void testCurrencyDefined(String currencyCode, int numericCode, int digits) { argument
224 if (currency.getDefaultFractionDigits() != digits) {
226 digits + "; got: " + currency.getDefaultFractionDigits());
184 testCountryCurrency(String country, String currencyCode, int numericCode, int digits, int index) argument
H A DCurrencyTest.java212 int digits = Currency.getInstance(currencyCode).getDefaultFractionDigits();
213 if (digits != expectedFractionDigits) {
214 throw new RuntimeException("Wrong number of fraction digits for currency " +
216 ", got " + digits);
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/DES/
H A DTestUtility.java30 private static final String digits = "0123456789abcdef"; field in class:TestUtility
43 buf.append (digits.charAt ((bytes[i] >> 4) & 0x0f));
44 buf.append (digits.charAt (bytes[i] & 0x0f));
/openjdk7/jdk/src/share/classes/sun/misc/
H A DFormattedFloatingDecimal.java38 char digits[]; field in class:FormattedFloatingDecimal
45 int precision; // number of digits to the right of decimal
51 private FormattedFloatingDecimal( boolean negSign, int decExponent, char []digits, int n, boolean e, int precision, Form form ) argument
56 this.digits = digits;
304 * The only reason that we develop the digits here, rather than
311 char digits[];
337 digits = (char[])(perThreadBuffer.get());
347 digits[digitno--] = (char)(c+'0');
352 digits[digitn
[all...]
H A DFloatingDecimal.java37 char digits[]; field in class:FloatingDecimal
45 private FloatingDecimal( boolean negSign, int decExponent, char []digits, int n, boolean e ) argument
50 this.digits = digits;
296 * The only reason that we develop the digits here, rather than
303 char digits[];
329 digits = (char[])(perThreadBuffer.get());
339 digits[digitno--] = (char)(c+'0');
344 digits[digitno] = (char)(c+'0');
349 digits
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/algorithm/
H A DUUIDEncodingAlgorithm.java106 return (digits(msb >> 32, 8) + "-" +
107 digits(msb >> 16, 4) + "-" +
108 digits(msb, 4) + "-" +
109 digits(lsb >> 48, 4) + "-" +
110 digits(lsb, 12));
113 final String digits(long val, int digits) { argument
114 long hi = 1L << (digits * 4);
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/dynamicany/
H A DDynFixedImpl.java86 // The integer and fraction parts both must be sequences of decimal (base 10) digits.
92 // If val has more fractional digits than can be represented in the DynFixed,
93 // fractional digits are truncated and the return value is false.
104 int digits = 0;
108 digits = any.type().fixed_digits();
159 if (currentDigits > digits) {
162 if (integerPart.length() < digits) {
163 fractionPart = fractionPart.substring(0, digits - integerPart.length());
164 } else if (integerPart.length() == digits) {
169 // integerPart.length() > digits
[all...]
/openjdk7/jdk/test/java/util/PluggableLocale/providersrc/
H A DNumberFormatProviderImpl.java128 * Adjusts the minimum and maximum fraction digits to values that
129 * are reasonable for the currency's default fraction digits.
141 int digits = currency.getDefaultFractionDigits();
142 if (digits != -1) {
147 nf.setMinimumFractionDigits(digits);
148 nf.setMaximumFractionDigits(digits);
150 nf.setMinimumFractionDigits(Math.min(digits, oldMinDigits));
151 nf.setMaximumFractionDigits(digits);
/openjdk7/jdk/src/share/classes/java/util/
H A DUUID.java375 return (digits(mostSigBits >> 32, 8) + "-" +
376 digits(mostSigBits >> 16, 4) + "-" +
377 digits(mostSigBits, 4) + "-" +
378 digits(leastSigBits >> 48, 4) + "-" +
379 digits(leastSigBits, 12));
382 /** Returns val represented by the specified number of hex digits. */
383 private static String digits(long val, int digits) { argument
384 long hi = 1L << (digits * 4);
/openjdk7/jdk/src/share/classes/sun/security/util/
H A DBigInt.java53 * @param data a sequence of bytes, most significant bytes/digits
141 private static final String digits = "0123456789abcdef"; field in class:BigInt
149 buf.append(digits.charAt((places[i] >> 4) & 0x0f));
150 buf.append(digits.charAt(places[i] & 0x0f));
/openjdk7/jdk/src/share/classes/com/sun/tools/hat/internal/util/
H A DMisc.java45 private static char[] digits = { '0', '1', '2', '3', '4', '5', '6', '7', field in class:Misc
52 buf[i++] = digits[(addr >> s) & 0xf];
/openjdk7/jdk/test/java/util/PluggableLocale/
H A DNumberFormatProviderTest.java148 * Adjusts the minimum and maximum fraction digits to values that
149 * are reasonable for the currency's default fraction digits.
161 int digits = currency.getDefaultFractionDigits();
162 if (digits != -1) {
167 df.setMinimumFractionDigits(digits);
168 df.setMaximumFractionDigits(digits);
170 df.setMinimumFractionDigits(Math.min(digits, oldMinDigits));
171 df.setMaximumFractionDigits(digits);
/openjdk7/jdk/make/tools/src/build/tools/generatecurrencydata/
H A DGenerateCurrencyData.java93 // mask for simple case country entry default currency digits
95 // shift count for simple case country entry default currency digits
209 int digits = getDefaultFractionDigits(currencyInfo);
210 if (digits < 0 || digits > 3) {
211 throw new RuntimeException("fraction digits out of range for " + currencyInfo);
219 | (digits << SIMPLE_CASE_COUNTRY_DEFAULT_DIGITS_SHIFT)
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/
H A DBits.java205 char[] digits = new char[bits.length * wordlen];
207 digits[i] = isMember(i) ? '1' : '0';
208 return new String(digits);
/openjdk7/jdk/src/share/classes/java/lang/
H A DInteger.java76 final static char[] digits = { field in class:Integer
103 * character. The following ASCII characters are used as digits:
113 * are used as radix-<var>N</var> digits in the order shown. Thus,
114 * the digits for hexadecimal (radix 16) are
148 buf[charPos--] = digits[-(i % radix)];
151 buf[charPos] = digits[-i];
166 * argument. This value is converted to a string of ASCII digits
173 * hexadecimal digits:
204 * argument. This value is converted to a string of ASCII digits
212 * digits
[all...]
H A DLong.java89 * character. The following ASCII characters are used as digits:
99 * are used as radix-<var>N</var> digits in the order shown. Thus,
100 * the digits for hexadecimal (radix 16) are
129 buf[charPos--] = Integer.digits[(int)(-(i % radix))];
132 buf[charPos] = Integer.digits[(int)(-i)];
148 * ASCII digits in hexadecimal (base&nbsp;16) with no extra
154 * hexadecimal digits:
187 * ASCII digits in octal (base&nbsp;8) with no extra leading
195 * digits:
220 * ASCII digits i
[all...]
/openjdk7/jdk/src/share/native/sun/awt/libpng/
H A Dpngerror.c162 int count = 0; /* number of digits output */
174 static const char digits[] = "0123456789ABCDEF"; local
179 /* Needs five digits (the fraction) */
183 *--end = digits[number % 10];
190 /* Expects at least 2 digits. */
195 *--end = digits[number % 10];
200 /* This format expects at least two digits */
205 *--end = digits[number & 0xf];
214 /* Keep track of the number of digits added */
390 * to 63 bytes, the name characters are output as hex digits wrappe
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/copyobject/
H A DJavaOutputStream.sjava383 public final void write_fixed(java.math.BigDecimal bigDecimal, short digits, short scale) {
384 impl.write_fixed(bigDecimal, digits, scale);
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/encoding/
H A DCDROutputStreamBase.java158 public abstract void write_fixed(java.math.BigDecimal bigDecimal, short digits, short scale); argument
H A DIDLJavaSerializationOutputStream.java425 // Each octet contains (up to) two decimal digits.
448 // If the fixed type has an odd number of decimal digits, then the
647 // digits and scale before it gets written to the stream.
649 short digits, short scale) {
674 stringBuffer = new StringBuffer(digits);
684 while (stringBuffer.length() < digits) {
648 write_fixed(java.math.BigDecimal bigDecimal, short digits, short scale) argument
H A DCDRInputStream.java406 public final java.math.BigDecimal read_fixed(short digits, short scale) { argument
407 return impl.read_fixed(digits, scale);
H A DCDROutputStream.java386 public final void write_fixed(java.math.BigDecimal bigDecimal, short digits, short scale) { argument
387 impl.write_fixed(bigDecimal, digits, scale);

Completed in 127 milliseconds

12