Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
BigDecimal (String value)
This constructs an arbitrary-precision floating-point number from the digits in the given string.
Parameters: value A string representing the floating-point number
BigDecimal add(BigDecimal other)
BigDecimal multiply(BigDecimal other)
BigDecimal subtract(BigDecimal other)
These methods return a BigDecimal whose value is the sum, difference, product, or quotient of this number and the other.
Parameters: other The other number
Returns: The result of the arithmetic operation
BigInteger (String value)
This constructs an arbitrary-precision integer from the digits in the given string. Parameters: value A string representing an arbitrary-precision integer
BigInteger add(BigInteger other)
BigInteger divide(BigInteger other)
BigInteger mod(BigInteger other)
BigInteger multiply(BigInteger other)
BigInteger subtract(BigInteger other)
These methods return a BigInteger whose value is the sum, difference, product, quotient, or remainder of this number and the other.
Parameters: other The other number
Returns: The result of the arithmetic operation