Searched defs:scale (Results 1 - 8 of 8) sorted by relevance

/libcore/luni/src/main/java/java/math/
H A DConversion.java132 * being scaled by {@code scale}.
137 static String toDecimalScaledString(BigInteger val, int scale) { argument
147 switch (scale) {
164 if (scale < 0) {
169 result1.append(-scale);
239 int exponent = resLengthInChars - currentChar - scale - 1;
240 if (scale == 0) {
247 if ((scale > 0) && (exponent >= -6)) {
297 static String toDecimalScaledString(long value, int scale) { argument
306 switch (scale) {
[all...]
H A DBigDecimal.java30 * <p>A value is represented by an arbitrary-precision "unscaled value" and a signed 32-bit "scale",
31 * combined thus: {@code unscaled * 10<sup>-scale</sup>}. See {@link #unscaledValue} and {@link #scale}.
222 * The 32-bit integer scale in the internal representation of {@code BigDecimal}.
224 private int scale; field in class:BigDecimal
237 private BigDecimal(long smallValue, int scale){ argument
239 this.scale = scale;
243 private BigDecimal(int smallValue, int scale){ argument
245 this.scale
574 BigDecimal(BigInteger unscaledVal, int scale) argument
597 BigDecimal(BigInteger unscaledVal, int scale, MathContext mc) argument
669 valueOf(long unscaledVal, int scale) argument
991 divide(BigDecimal divisor, int scale, int roundingMode) argument
1018 divide(BigDecimal divisor, int scale, RoundingMode roundingMode) argument
1074 divideBigIntegers(BigInteger scaledDividend, BigInteger scaledDivisor, int scale, RoundingMode roundingMode) argument
1110 dividePrimitiveLongs(long scaledDividend, long scaledDivisor, int scale, RoundingMode roundingMode) argument
1771 public int scale() { method in class:BigDecimal
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DStringCoding.java104 private static int scale(int len, float expansionFactor) { method in class:StringCoding
160 int en = scale(len, cd.maxCharsPerByte());
226 int en = scale(len, cd.maxCharsPerByte());
311 int en = scale(len, ce.maxBytesPerChar());
358 int en = scale(len, ce.maxBytesPerChar());
/libcore/ojluni/src/main/java/javax/sql/
H A DRowSetMetaData.java190 * @param scale the number of digits to right of decimal point
193 void setScale(int columnIndex, int scale) throws SQLException; argument
H A DRowSet.java1225 * to be sent to the database. The scale argument may further qualify this
1264 * sent to the database. The scale argument may further qualify this type.
1265 * @param scale for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types,
1281 void setObject(String parameterName, Object x, int targetSqlType, int scale) argument
1288 * This method is like <code>setObject</code> above, but the scale used is the scale
1289 * of the second parameter. Scalar values have a scale of zero. Literal
1290 * values have the scale present in the literal.
1307 * above, except that it assumes a scale of zero.
/libcore/ojluni/src/main/java/java/sql/
H A DCallableStatement.java88 * <code>registerOutParameter</code> that accepts a scale value
123 * @param scale the desired number of digits to the right of the
137 void registerOutParameter(int parameterIndex, int sqlType, int scale) argument
283 * <code>java.math.BigDecimal</code> object with <i>scale</i> digits to
287 * @param scale the number of digits to the right of the decimal point
299 BigDecimal getBigDecimal(int parameterIndex, int scale) argument
642 * <code>registerOutParameter</code> that accepts a scale value
677 * @param scale the desired number of digits to the right of the
693 void registerOutParameter(String parameterName, int sqlType, int scale) argument
1105 * sent to the database. The scale argumen
1123 setObject(String parameterName, Object x, int targetSqlType, int scale) argument
[all...]
H A DResultSet.java352 * @param scale the number of digits to the right of the decimal point
363 BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException; argument
638 * @param scale the number of digits to the right of the decimal point
649 BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException; argument
/libcore/ojluni/src/main/java/java/util/
H A DFormatter.java3617 int scale = value.scale();
3631 = new BigDecimal(value.unscaledValue(), scale, mc);
3634 = new BigDecimalLayout(v.unscaledValue(), v.scale(),
3640 // contain a decimal point if the scale is zero (the internal
3671 int scale = value.scale();
3673 if (scale > prec) {
3674 // more "scale" digits than the requested "precision"
3676 if (compPrec <= scale) {
3751 private int scale; field in class:Formatter.FormatSpecifier.BigDecimalLayout
3753 BigDecimalLayout(BigInteger intVal, int scale, BigDecimalLayoutForm form) argument
3761 public int scale() { method in class:Formatter.FormatSpecifier.BigDecimalLayout
3793 layout(BigInteger intVal, int scale, BigDecimalLayoutForm form) argument
[all...]

Completed in 321 milliseconds