I have a function called factorial which calculates factorial for a large number and returns in BidDecimal
BigDecimal temp_val1 = factorial(555);
the above gives 66140856092779467090983316712427699021235xxxxxxxxxxxxxxxxxxxxx
Now i have to format the BigDecimal value to string with scientific notation
NumberFormat sci_formate = new DecimalFormat("0.#####E0");
String temp_s1 = sci_formate.format(temp_val1);
the above gives 6.61409E1283
Now i need to convert the string temp_s1(6.61409E1283) back to BigDecimal which gives the value of temp_val1....???? How to do that....