Take the 2-minute tour ×  How can I get the largest possible
value of a BigDecimal variable can hold? (Preferably
programmatically, but hardcoding would be ok too)  OK, just
realized there is no such thing since BigDecimal is arbitrary
precision. So I ended up with this, which is sufficiently good
for my purpose: BigDecimal my =
BigDecimal.valueOf(Double.MAX_VALUE)  share|improve this
question You need alot of memory to start with. ;) –  Peter
Lawrey Jul 22 '11 at 15:06 What would you store it in? – 
biziclop Jul 22 '11 at 15:09 @Peter that means there is no such
constant value since BigDecimal is arbitrary precision, right?
–  Caner Jul 22 '11 at 15:10 @LAS_VEGAS Correct, there's just no
such thing. You have to pick a limit and say that's the most you
want to support. –  biziclop Jul 22 '11 at 15:13 By the way, you
probably also want to define the smallest (positive) number that
you allow, to limit the number of digits stored per number to a
reasonable memory footprint. –  biziclop Jul 22 '11 at 15:17
show 1