- BigDecimal - Class in java.math
-
Immutable, arbitrary-precision signed decimal numbers.
- BigDecimal(char[], int, int) - Constructor for class java.math.BigDecimal
-
Translates a character array representation of a
BigDecimal
into a
BigDecimal
, accepting the same
sequence of characters as the
BigDecimal.BigDecimal(String)
constructor, while allowing a sub-array to be
specified.
- BigDecimal(char[], int, int, MathContext) - Constructor for class java.math.BigDecimal
-
Translates a character array representation of a
BigDecimal
into a
BigDecimal
, accepting the same
sequence of characters as the
BigDecimal.BigDecimal(String)
constructor, while allowing a sub-array to be specified
and with rounding according to the context settings.
- BigDecimal(char[]) - Constructor for class java.math.BigDecimal
-
Translates a character array representation of a
BigDecimal
into a
BigDecimal
, accepting the same
sequence of characters as the
BigDecimal.BigDecimal(String)
constructor.
- BigDecimal(char[], MathContext) - Constructor for class java.math.BigDecimal
-
Translates a character array representation of a
BigDecimal
into a
BigDecimal
, accepting the same
sequence of characters as the
BigDecimal.BigDecimal(String)
constructor and with rounding according to the context
settings.
- BigDecimal(String) - Constructor for class java.math.BigDecimal
-
Translates the string representation of a BigDecimal
into a BigDecimal
.
- BigDecimal(String, MathContext) - Constructor for class java.math.BigDecimal
-
Translates the string representation of a
BigDecimal
into a
BigDecimal
, accepting the same
strings as the
BigDecimal.BigDecimal(String)
constructor, with rounding according to the context settings.
- BigDecimal(double) - Constructor for class java.math.BigDecimal
-
Translates a double
into a BigDecimal
which is the exact decimal representation of the
double
's binary floating-point value.
- BigDecimal(double, MathContext) - Constructor for class java.math.BigDecimal
-
Translates a double
into a BigDecimal
, with rounding according to the context settings.
- BigDecimal(BigInteger) - Constructor for class java.math.BigDecimal
-
Translates a BigInteger
into a BigDecimal
.
- BigDecimal(BigInteger, MathContext) - Constructor for class java.math.BigDecimal
-
Translates a BigInteger
into a BigDecimal
rounding according to the context settings.
- BigDecimal(BigInteger, int) - Constructor for class java.math.BigDecimal
-
Translates a BigInteger
unscaled value and an int
scale into a BigDecimal
.
- BigDecimal(BigInteger, int, MathContext) - Constructor for class java.math.BigDecimal
-
Translates a BigInteger
unscaled value and an int
scale into a BigDecimal
, with rounding
according to the context settings.
- BigDecimal(int) - Constructor for class java.math.BigDecimal
-
Translates an int
into a BigDecimal
.
- BigDecimal(int, MathContext) - Constructor for class java.math.BigDecimal
-
Translates an int
into a BigDecimal
, with rounding according to the context settings.
- BigDecimal(long) - Constructor for class java.math.BigDecimal
-
Translates a long
into a BigDecimal
.
- BigDecimal(long, MathContext) - Constructor for class java.math.BigDecimal
-
Translates a long
into a BigDecimal
, with rounding according to the context settings.
- BigInteger - Class in java.math
-
Immutable arbitrary-precision integers.
- BigInteger(byte[]) - Constructor for class java.math.BigInteger
-
Translates a byte array containing the two's-complement binary representation of a BigInteger into a BigInteger.
- BigInteger(int, byte[]) - Constructor for class java.math.BigInteger
-
Translates the sign-magnitude representation of a BigInteger into a BigInteger.
- BigInteger(String, int) - Constructor for class java.math.BigInteger
-
Translates the String representation of a BigInteger in the specified radix into a BigInteger.
- BigInteger(String) - Constructor for class java.math.BigInteger
-
Translates the decimal String representation of a BigInteger into a BigInteger.
- BigInteger(int, Random) - Constructor for class java.math.BigInteger
-
Constructs a randomly generated BigInteger, uniformly distributed over the range 0 to (2
numBits
- 1), inclusive.
- bitCount() - Method in class java.math.BigInteger
-
Returns the number of bits in the two's complement representation of this BigInteger that differ from its sign
bit.
- bitLength() - Method in class java.math.BigInteger
-
Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a
sign bit.
- byteValueExact() - Method in class java.math.BigDecimal
-
Converts this BigDecimal
to a byte
, checking for lost information.
- byteValueExact() - Method in class java.math.BigInteger
-
Converts this BigInteger
to a byte
, checking for lost information.