/openjdk10/jdk/src/java.base/share/classes/java/text/ |
H A D | DigitList.java | 57 * precision to represent all digits of a long. 60 * which are the digits radix 10, from '0' to '9'. It also has a radix 63 * derived by placing all the digits of the list to the right of the 76 * The maximum number of significant digits in an IEEE 754 double, that 77 * is, in a Java double. This must not be increased, or garbage digits 86 * digits[decimalAt]. If decimalAt is < 0, then leading zeros between 88 * is > count, then trailing zeros between the digits[count-1] and the 92 * f is a value 0.1 <= f < 1 arrived at by placing the digits in Digits to 98 * digits present in digits[] 105 public char[] digits = new char[MAX_COUNT]; field in class:DigitList [all...] |
H A D | DecimalFormat.java | 63 * locale, including support for Western, Arabic, and Indic digits. It also 136 * serves only to specify the negative prefix and suffix; the number of digits, 137 * minimal digits, and other characteristics are all the same as the positive 141 * <p>The prefixes, suffixes, and various symbols used for infinity, digits, 154 * of digits between the grouping characters, such as 3 for 100,000,000 or 4 for 270 * <li>The minimum and maximum number of integer digits are interpreted 274 * <li>If the maximum number of integer digits is greater than their minimum number 276 * number of integer digits, and the minimum number of integer digits to be 283 * <li>Otherwise, the minimum number of integer digits i 2181 subparse(String text, ParsePosition parsePosition, String positivePrefix, String negativePrefix, DigitList digits, boolean isExponent, boolean status[]) argument [all...] |
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/math/ |
H A D | FormattedFloatingDecimal.java | 63 char[] digits = getBuffer(); 64 int nDigits = fdConverter.getDigits(digits); 72 fillCompatible(precision, digits, nDigits, exp, isNegative); 75 exp = applyPrecision(decExp, digits, nDigits, decExp + precision); 76 fillDecimal(precision, digits, nDigits, exp, isNegative); 80 exp = applyPrecision(decExp, digits, nDigits, precision + 1); 81 fillScientific(precision, digits, nDigits, exp, isNegative); 85 exp = applyPrecision(decExp, digits, nDigits, precision); 86 // adjust precision to be the number of digits to right of decimal 91 fillScientific(precision, digits, nDigit 138 applyPrecision(int decExp, char[] digits, int nDigits, int prec) argument 181 fillCompatible(int precision, char[] digits, int nDigits, int exp, boolean isNegative) argument 280 fillDecimal(int precision, char[] digits, int nDigits, int exp, boolean isNegative) argument 332 fillScientific(int precision, char[] digits, int nDigits, int exp, boolean isNegative) argument [all...] |
H A D | FloatingDecimal.java | 149 * Retrieves the value as an array of digits. 150 * @param digits The digit array. 151 * @return The number of valid digits copied into the array. 153 public int getDigits(char[] digits); argument 220 public int getDigits(char[] digits) { argument 221 throw new IllegalArgumentException("Exceptional value does not have digits"); 264 private final char[] digits; field in class:FloatingDecimal.BinaryToASCIIBuffer 269 // the binary to decimal digits conversion done in dtoa() and roundup() 285 this.digits = new char[20]; 291 BinaryToASCIIBuffer(boolean isNegative, char[] digits){ argument 323 getDigits(char[] digits) argument 1037 char digits[]; field in class:FloatingDecimal.ASCIIToBinaryBuffer 1040 ASCIIToBinaryBuffer( boolean negSign, int decExponent, char[] digits, int n) argument [all...] |
/openjdk10/jdk/test/java/util/Currency/ |
H A D | Bug4512215.java | 50 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 D | ValidateISO4217.java | 188 int numericCode, int digits, int index) { 192 testCurrencyDefined(currencyCode, numericCode, digits); 217 static void testCurrencyDefined(String currencyCode, int numericCode, int digits) { argument 227 if (currency.getDefaultFractionDigits() != digits) { 229 digits + "; got: " + currency.getDefaultFractionDigits()); 187 testCountryCurrency(String country, String currencyCode, int numericCode, int digits, int index) argument
|
H A D | CurrencyTest.java | 223 int digits = Currency.getInstance(currencyCode).getDefaultFractionDigits(); 224 if (digits != expectedFractionDigits) { 225 throw new RuntimeException("Wrong number of fraction digits for currency " + 227 ", got " + digits);
|
/openjdk10/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/fastinfoset/algorithm/ |
H A D | UUIDEncodingAlgorithm.java | 106 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);
|
/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/impl/dynamicany/ |
H A D | DynFixedImpl.java | 86 // 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...] |
/openjdk10/jdk/src/java.base/share/classes/sun/util/locale/provider/ |
H A D | NumberFormatProviderImpl.java | 194 * Adjusts the minimum and maximum fraction digits to values that 195 * are reasonable for the currency's default fraction digits. 207 int digits = currency.getDefaultFractionDigits(); 208 if (digits != -1) { 213 format.setMinimumFractionDigits(digits); 214 format.setMaximumFractionDigits(digits); 216 format.setMinimumFractionDigits(Math.min(digits, oldMinDigits)); 217 format.setMaximumFractionDigits(digits);
|
/openjdk10/jdk/test/java/util/PluggableLocale/providersrc/ |
H A D | NumberFormatProviderImpl.java | 128 * 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);
|
/openjdk10/jdk/test/jdk/internal/math/FloatingDecimal/ |
H A D | OldFloatingDecimalForTest.java | 32 char digits[]; field in class:OldFloatingDecimalForTest 42 * the binary to decimal digits conversion done in dtoa() and roundup() 53 private OldFloatingDecimalForTest( boolean negSign, int decExponent, char []digits, int n, boolean e ) argument 58 this.digits = digits; 304 * The only reason that we develop the digits here, rather than 311 char digits[]; 337 digits = perThreadBuffer.get(); 347 digits[digitno--] = (char)(c+'0'); 352 digits[digitn [all...] |
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/doubleconv/ |
H A D | DoubleConversion.java | 90 * Converts a double number to a string representation with a fixed number of digits 94 * @param requestedDigits number of digits after decimal point 117 * Converts a double number to a string representation with a fixed number of digits. 120 * @param precision number of digits to create 148 * and number of digits. 152 * @param digits number of digits 155 public static void bignumDtoa(final double v, final DtoaMode mode, final int digits, final DtoaBuffer buffer) { argument 160 BignumDtoa.bignumDtoa(v, mode, digits, buffer); 181 * given number of digits usin 206 fixedDtoa(final double v, final int digits, final DtoaBuffer buffer) argument [all...] |
/openjdk10/test/lib/jdk/test/lib/hprof/util/ |
H A D | Misc.java | 45 private static char[] digits = { '0', '1', '2', '3', '4', '5', '6', '7', field in class:Misc 52 buf[i++] = digits[(addr >> s) & 0xf];
|
/openjdk10/jdk/test/javax/naming/module/src/test/test/ |
H A D | LDAPServer.java | 130 String digits = result.group(i); 131 if (digits.length() == 4) { 132 if (digits.equals("0000")) { // start-of-message 139 } else if (digits.equals(" ")) { // short message 142 hexString.append(digits);
|
/openjdk10/jdk/test/java/text/Format/NumberFormat/ |
H A D | CurrencyFormat.java | 81 int digits = currency.getDefaultFractionDigits(); 82 format.setMinimumFractionDigits(digits); 83 format.setMaximumFractionDigits(digits);
|
/openjdk10/jdk/test/java/util/PluggableLocale/ |
H A D | NumberFormatProviderTest.java | 145 * Adjusts the minimum and maximum fraction digits to values that 146 * are reasonable for the currency's default fraction digits. 158 int digits = currency.getDefaultFractionDigits(); 159 if (digits != -1) { 164 df.setMinimumFractionDigits(digits); 165 df.setMaximumFractionDigits(digits); 167 df.setMinimumFractionDigits(Math.min(digits, oldMinDigits)); 168 df.setMaximumFractionDigits(digits);
|
/openjdk10/jdk/make/src/classes/build/tools/cldrconverter/ |
H A D | LDMLParseHandler.java | 516 String digits = CLDRConverter.handlerNumbering.get(script); 517 if (digits == null) { 518 throw new InternalError("null digits for " + script); 520 if (Character.isSurrogate(digits.charAt(0))) { 525 // in case digits are in the reversed order, reverse back the order. 526 if (digits.charAt(0) > digits.charAt(digits.length() - 1)) { 527 StringBuilder sb = new StringBuilder(digits); 528 digits [all...] |
/openjdk10/jdk/src/java.base/share/classes/java/lang/ |
H A D | Integer.java | 84 static final char[] digits = { field in class:Integer 111 * character. The following ASCII characters are used as digits: 121 * are used as radix-<var>N</var> digits in the order shown. Thus, 122 * the digits for hexadecimal (radix 16) are 156 buf[charPos--] = (byte)digits[-(i % radix)]; 159 buf[charPos] = (byte)digits[-i]; 178 StringUTF16.putChar(buf, charPos--, digits[-(i % radix)]); 181 StringUTF16.putChar(buf, charPos, digits[-i]); 206 * <p>The behavior of radixes and the characters used as digits 225 * argument. This value is converted to a string of ASCII digits [all...] |
H A D | Long.java | 99 * character. The following ASCII characters are used as digits: 109 * are used as radix-<var>N</var> digits in the order shown. Thus, 110 * the digits for hexadecimal (radix 16) are 141 buf[charPos--] = (byte)Integer.digits[(int)(-(i % radix))]; 144 buf[charPos] = (byte)Integer.digits[(int)(-i)]; 162 StringUTF16.putChar(buf, charPos--, Integer.digits[(int)(-(i % radix))]); 165 StringUTF16.putChar(buf, charPos, Integer.digits[(int)(-i)]); 189 * <p>The behavior of radixes and the characters used as digits 217 * allows the last digit and preceding digits to be 261 * ASCII digits i [all...] |
/openjdk10/jdk/make/src/classes/build/tools/generatecurrencydata/ |
H A D | GenerateCurrencyData.java | 90 // mask for simple case country entry default currency digits 92 // shift count for simple case country entry default currency digits 94 // maximum number for simple case country entry default currency digits 211 int digits = getDefaultFractionDigits(currencyInfo); 212 if (digits < 0 || digits > SIMPLE_CASE_COUNTRY_MAX_DEFAULT_DIGITS) { 213 throw new RuntimeException("fraction digits out of range for " + currencyInfo); 221 | (digits << SIMPLE_CASE_COUNTRY_DEFAULT_DIGITS_SHIFT)
|
/openjdk10/nashorn/test/src/jdk/nashorn/internal/runtime/doubleconv/test/ |
H A D | FastDtoaTest.java | 55 // Removes trailing '0' digits. 56 // Can return the empty string if all digits are 0. 278 // Count separately for entries with less than 15 requested digits. 291 final int digits = Integer.parseInt(tokens[1]); 296 if (digits <= 15) { 300 if (DoubleConversion.fastDtoaCounted(v, digits, buffer)) { 304 if (digits <= 15) { 311 // digits. These have a high failure rate and we therefore expect a lower 314 // However with less than 15 digits almost the algorithm should almost always
|
H A D | BignumDtoaTest.java | 79 // Removes trailing '0' digits. 80 // Can return the empty string if all digits are 0. 319 final int digits = Integer.parseInt(tokens[1]); 324 DoubleConversion.bignumDtoa(v, DtoaMode.FIXED, digits, buffer); 341 final int digits = Integer.parseInt(tokens[1]); 346 DoubleConversion.bignumDtoa(v, DtoaMode.PRECISION, digits, buffer);
|
/openjdk10/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/ |
H A D | Bits.java | 338 char[] digits = new char[bits.length * wordlen]; 340 digits[i] = isMember(i) ? '1' : '0'; 342 return new String(digits);
|
/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/impl/encoding/ |
H A D | CDROutputStreamBase.java | 158 public abstract void write_fixed(java.math.BigDecimal bigDecimal, short digits, short scale); argument
|