Home
last modified time | relevance | path

Searched refs:zeros (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/test/java/math/BigDecimal/
DZeroScalingTests.java45 static BigDecimal[] zeros = new BigDecimal[23]; field in ZeroScalingTests
48 zeros[i] = new BigDecimal(BigInteger.ZERO, i-10);
50 zeros[21] = new BigDecimal(BigInteger.ZERO, Integer.MIN_VALUE);
51 zeros[22] = new BigDecimal(BigInteger.ZERO, Integer.MAX_VALUE);
69 for(BigDecimal zero1: zeros) { in addTests()
70 for(BigDecimal zero2: zeros) { in addTests()
95 for (BigDecimal zero: zeros) { in addTests()
141 for(BigDecimal zero1: zeros) { in subtractTests()
142 for(BigDecimal zero2: zeros) { in subtractTests()
169 for (BigDecimal zero: zeros) { in subtractTests()
[all …]
/libcore/ojluni/src/main/java/jdk/internal/math/
DFormattedFloatingDecimal.java205 int zeros = Math.max(0, Math.min(-exp, precision)); in fillCompatible() local
208 if (zeros > 0) { in fillCompatible()
209 mantissa = create(isNegative, zeros + 2 + t); in fillCompatible()
212 Arrays.fill(mantissa, startIndex + 2, startIndex + 2 + zeros, '0'); in fillCompatible()
215 System.arraycopy(digits, 0, mantissa, startIndex + 2 + zeros, t); in fillCompatible()
218 mantissa = create(isNegative, zeros + 2 + t); in fillCompatible()
304 int zeros = Math.max(0, Math.min(-exp, precision)); in fillDecimal() local
307 if (zeros > 0) { in fillDecimal()
308 mantissa = create(isNegative, zeros + 2 + t); in fillDecimal()
311 Arrays.fill(mantissa, startIndex + 2, startIndex + 2 + zeros, '0'); in fillDecimal()
[all …]
DFDBigInteger.java399 int zeros = Integer.numberOfLeadingZeros(data[nWords - 1]); in getNormalizationBias() local
400 return (zeros < 4) ? 28 + zeros : zeros - 4; in getNormalizationBias()
/libcore/ojluni/src/test/java/lang/Double/
DToHexStringTest.java60 String zeros = ""; in hexLongStringtoHexDoubleString() local
63 for(int i = 0; i < (16 - transString.length()); i++, zeros += "0"); in hexLongStringtoHexDoubleString()
64 transString = zeros + transString; in hexLongStringtoHexDoubleString()
/libcore/ojluni/src/main/java/java/sql/
DTimestamp.java189 String zeros = "000000000"; in valueOf() local
252 nanos_s = nanos_s + zeros.substring(0,9-nanos_s.length()); in valueOf()
289 String zeros = "000000000"; in toString() local
332 nanosString = zeros.substring(0, (9-nanosString.length())) + in toString()