1. ## BigDecimal and BigInteger

"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 of the number represented by the BigDecimal is therefore (unscaledValue × 10-scale)."

Source: JAVA API for java.math.BigDecimal
Java Platform Standard Ed. 6, available at Java Platform SE 6.

Hence, what is the smallest/largest number that may be represented by BigInteger and BigDecimal, in layman's terms?

How is it possible to deduce the minimum and maximum values, and, display them programmatically?

2. Indeed, but it does not seem to answer my questions.

3. Originally Posted by Eranga
This may helpful to you. I've just read this few days ago. :)
That is a crappy page; nothing in it isn't described (in much greater detail) in the API documentation for the BigInteger class. It's a waste of bandwidth and not worthy to be a Wiki page.

kind regards,

Jos

4. Moderator
Join Date
Feb 2009
Location
New Zealand
Posts
4,712
Rep Power
14
How is it possible to deduce the minimum and maximum values, and, display them programmatically?

The 32 bit scale of a BigDecimal indicates that it can get big. As Douglas Adams would say: really, really big.

5. Originally Posted by jon80
Indeed, but it does not seem to answer my questions.
I agreed. Conceptually for me it is, but not programmatically.

6. Originally Posted by JosAH
It's a waste of bandwidth and not worthy to be a Wiki page.

7. Originally Posted by Eranga
Normally Wiki is fine but the page you linked to was utter crap. Tell me what is good about it that can't be found in the API documentation?

kind regards,

Jos

8. Explain with easy steps, nothing else. No point of stuck with API document, no sectioned at all.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•