|
convert a really big string (len 39) to bigdecimal
Hi ,
How do I convert a large String (length 39 ) to BigDecimal ?
eg
String c = "848595950484765868574748349586738596879";
try {
BigDecimal num2 = BigDecimal.valueOf((Long.parseLong(c)));
} catch (NumberFormatException nfe) {
nfe.printStackTrace();
}
I tried this, it throws a nfe. Any ideas on how to get this string parsed to an BigDecimal.
Thanks
|