Alex Rivera | Logout

How to convert BigInteger to BigDecimal?

Asked 2010-06-25T03:45:14.217
44

Is there any way to convert a BigInteger into a BigDecimal?

I know you can go from a BigDecimal to a BigInteger, but I can't find a method to go the other way around in Java.

Edit
Report

1 Answer

73

You have a parameterized constructor for that.

BigDecimal(BigInteger val)

answered 2010-06-25T03:49:26.377

Your Answer