BigDecimal « biginteger « Java Data Type Q&A





1. java Biginteger BigDecimal    stackoverflow.com

Is there any way to convert a BigInteger into a BigDecimal? i know you can go from DEC to INT but i cant find a method to go the other ...

2. Bug in Number or BigInteger and BigDecimal (or alternatively in the API documentation of those)?    stackoverflow.com

According to the specification of Number.longValue() the method should...

Returns the value of the specified number as a long. This may involve rounding or truncation.
However, the BigInteger (and BigDecimal) overrides ...

3. BigInteger (or BigDecimal) powers and roots    coderanch.com

I am writing a (practical) implementation of RSA encryption for Java. I am using BigInteger for most of my calculations, but I need to be able to find out several specific things: 1)Is there a way to find the nth or even square or cube root of a BigInteger/Decimal? 2)Is there a way to take a BigInteger/Decimal to a [double] power ...

4. BigDecimal and BigInteger    java-forums.org

"Immutable, arbitrary-precision signed decimal numbers. A BigDecimal consists of an arbitrary precision integer unscaled value and a 32-bit integer scale. If zero or positive, the scale is the number of digits to the right of the decimal point. If negative, the unscaled value of the number is multiplied by ten to the power of the negation of the scale. The value ...

7. Java BigDecimal and BigInteger Validation    forums.oracle.com