how can i convert BigDecimal value in BigInteger

Hi Folk!

I am problem i need to change BigDecimal value in BigInteger. Can anybody tell me how can i do it?

I Know how to change a BigInteger value in BigDecimal. Here is the code.

BigInteger bint = BigInteger.valueOf(1231231232);

BigDecimal input2 =new BigDecimal(input);

but I have a BigDecimal how can i do the opposite what i have done in code?

Thanks in Advance

[445 byte] By [asyed01a] at [2007-11-27 8:40:54]
# 1
check the API: http://java.sun.com/javase/6/docs/api/java/math/BigDecimal.html#toBigInteger()
petes1234a at 2007-7-12 20:39:36 > top of Java-index,Java Essentials,New To Java...
# 2
petes1234 Thanks alot man. Appericiate it,
asyed01a at 2007-7-12 20:39:36 > top of Java-index,Java Essentials,New To Java...
# 3
> I am problem... that's not good.(Glad to see you got your problem resolved.)
Navy_Codera at 2007-7-12 20:39:36 > top of Java-index,Java Essentials,New To Java...