Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.4.2
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
java.math.BigDecimal

Packages that use BigDecimal
java.math | Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal).
java.sql | Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language.
javax.sql | Provides the API for server side data source access and processing from the JavaTM programming language.
org.omg.CORBA | Provides the mapping of the OMG CORBA APIs to the JavaTM programming language, including the class `ORB`, which is implemented so that a programmer can use it as a fully-functional Object Request Broker (ORB).
org.omg.CORBA.portable | Provides a portability layer, that is, a set of ORB APIs that makes it possible for code generated by one vendor to run on another vendor's ORB.

Uses of BigDecimal in java.math

Methods in java.math that return BigDecimal
`static BigDecimal` | `BigDecimal.valueOf(long unscaledVal, int scale)` Translates a `long` unscaled value and an `int` scale into a BigDecimal.
`static BigDecimal` | `BigDecimal.valueOf(long val)` Translates a `long` value into a BigDecimal with a scale of zero.
`BigDecimal` | `BigDecimal.add(BigDecimal val)` Returns a BigDecimal whose value is `(this + val)`, and whose scale is `max(this.scale(), val.scale())`.
`BigDecimal` | `BigDecimal.subtract(BigDecimal val)` Returns a BigDecimal whose value is `(this - val)`, and whose scale is `max(this.scale(), val.scale())`.
`BigDecimal` | `BigDecimal.multiply(BigDecimal val)` Returns a BigDecimal whose value is `(this * val)`, and whose scale is `(this.scale() + val.scale())`.
`BigDecimal` | `BigDecimal.divide(BigDecimal val, int scale, int roundingMode)` Returns a BigDecimal whose value is `(this / val)`, and whose scale is as specified.
`BigDecimal` | `BigDecimal.divide(BigDecimal val, int roundingMode)` Returns a BigDecimal whose value is `(this / val)`, and whose scale is `this.scale()`.
`BigDecimal` | `BigDecimal.abs()` Returns a BigDecimal whose value is the absolute value of this BigDecimal, and whose scale is `this.scale()`.
`BigDecimal` | `BigDecimal.negate()` Returns a BigDecimal whose value is `(-this)`, and whose scale is `this.scale()`.
`BigDecimal` | `BigDecimal.setScale(int scale, int roundingMode)` Returns a BigDecimal whose scale is the specified value, and whose unscaled value is determined by multiplying or dividing this BigDecimal's unscaled value by the appropriate power of ten to maintain its overall value.
`BigDecimal` | `BigDecimal.setScale(int scale)` Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to this BigDecimal's.
`BigDecimal` | `BigDecimal.movePointLeft(int n)` Returns a BigDecimal which is equivalent to this one with the decimal point moved n places to the left.
`BigDecimal` | `BigDecimal.movePointRight(int n)` Moves the decimal point the specified number of places to the right.
`BigDecimal` | `BigDecimal.min(BigDecimal val)` Returns the minimum of this BigDecimal and `val`.
`BigDecimal` | `BigDecimal.max(BigDecimal val)` Returns the maximum of this BigDecimal and `val`.

Methods in java.math with parameters of type BigDecimal
`BigDecimal` | `BigDecimal.add(BigDecimal val)` Returns a BigDecimal whose value is `(this + val)`, and whose scale is `max(this.scale(), val.scale())`.
`BigDecimal` | `BigDecimal.subtract(BigDecimal val)` Returns a BigDecimal whose value is `(this - val)`, and whose scale is `max(this.scale(), val.scale())`.
`BigDecimal` | `BigDecimal.multiply(BigDecimal val)` Returns a BigDecimal whose value is `(this * val)`, and whose scale is `(this.scale() + val.scale())`.
`BigDecimal` | `BigDecimal.divide(BigDecimal val, int scale, int roundingMode)` Returns a BigDecimal whose value is `(this / val)`, and whose scale is as specified.
`BigDecimal` | `BigDecimal.divide(BigDecimal val, int roundingMode)` Returns a BigDecimal whose value is `(this / val)`, and whose scale is `this.scale()`.
`int` | `BigDecimal.compareTo(BigDecimal val)` Compares this BigDecimal with the specified BigDecimal.
`BigDecimal` | `BigDecimal.min(BigDecimal val)` Returns the minimum of this BigDecimal and `val`.
`BigDecimal` | `BigDecimal.max(BigDecimal val)` Returns the maximum of this BigDecimal and `val`.

Uses of BigDecimal in java.sql

Methods in java.sql that return BigDecimal
`BigDecimal` | `SQLInput.readBigDecimal()` Reads the next attribute in the stream and returns it as a `java.math.BigDecimal` object in the Java programming language.
`BigDecimal` | `CallableStatement.getBigDecimal(int parameterIndex, int scale)` Deprecated. use `getBigDecimal(int parameterIndex)` or `getBigDecimal(String parameterName)`
`BigDecimal` | `CallableStatement.getBigDecimal(int parameterIndex)` Retrieves the value of the designated JDBC `NUMERIC` parameter as a `java.math.BigDecimal` object with as many digits to the right of the decimal point as the value contains.
`BigDecimal` | `CallableStatement.getBigDecimal(String parameterName)` Retrieves the value of a JDBC `NUMERIC` parameter as a `java.math.BigDecimal` object with as many digits to the right of the decimal point as the value contains.
`BigDecimal` | `ResultSet.getBigDecimal(int columnIndex, int scale)` Deprecated.
`BigDecimal` | `ResultSet.getBigDecimal(String columnName, int scale)` Deprecated.
`BigDecimal` | `ResultSet.getBigDecimal(int columnIndex)` Retrieves the value of the designated column in the current row of this `ResultSet` object as a `java.math.BigDecimal` with full precision.
`BigDecimal` | `ResultSet.getBigDecimal(String columnName)` Retrieves the value of the designated column in the current row of this `ResultSet` object as a `java.math.BigDecimal` with full precision.

Methods in java.sql with parameters of type BigDecimal
`void` | `SQLOutput.writeBigDecimal(BigDecimal x)` Writes the next attribute to the stream as a java.math.BigDecimal object.
`void` | `CallableStatement.setBigDecimal(String parameterName, BigDecimal x)` Sets the designated parameter to the given `java.math.BigDecimal` value.
`void` | `PreparedStatement.setBigDecimal(int parameterIndex, BigDecimal x)` Sets the designated parameter to the given `java.math.BigDecimal` value.
`void` | `ResultSet.updateBigDecimal(int columnIndex, BigDecimal x)` Updates the designated column with a `java.math.BigDecimal` value.
`void` | `ResultSet.updateBigDecimal(String columnName, BigDecimal x)` Updates the designated column with a `java.sql.BigDecimal` value.

Uses of BigDecimal in javax.sql

Methods in javax.sql with parameters of type BigDecimal
`void` | `RowSet.setBigDecimal(int parameterIndex, BigDecimal x)` Sets the designated parameter in this `RowSet` object's command to the given `java.math.BigDeciaml` value.

Uses of BigDecimal in org.omg.CORBA

Fields in org.omg.CORBA declared as BigDecimal
`BigDecimal` | `FixedHolder.value` The value held by the FixedHolder

Methods in org.omg.CORBA that return BigDecimal
`BigDecimal` | `Any.extract_fixed()` Extracts the `java.math.BigDecimal` object in this `Any` object's `value` field.

Methods in org.omg.CORBA with parameters of type BigDecimal
`void` | `Any.insert_fixed(BigDecimal value)` Throws an `org.omg.CORBA.NO_IMPLEMENT` exception.
`void` | `Any.insert_fixed(BigDecimal value, TypeCode type)` Throws an `org.omg.CORBA.NO_IMPLEMENT` exception.

Constructors in org.omg.CORBA with parameters of type BigDecimal
`FixedHolder(BigDecimal initial)` Construct the FixedHolder and initialize it with the given value.

Uses of BigDecimal in org.omg.CORBA.portable

Methods in org.omg.CORBA.portable that return BigDecimal
`BigDecimal` | `InputStream.read_fixed()` Reads a BigDecimal number.

Methods in org.omg.CORBA.portable with parameters of type BigDecimal
`void` | `OutputStream.write_fixed(BigDecimal value)` Writes a BigDecimal number.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.4.2
PREV NEXT | FRAMES NO FRAMES

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.