Carlos Laspina Carlos Laspina - 1 year ago 89
Java Question

Extract int part of a BigDecimal?

In Java, I'm working with the

class and part of my code requires me to extract the int part from it.
does not appear to have any built in methods to help me get the number before the decimal point of a

For example:

BigDecimal bd = new BigDecimal("23452.4523434");

I want to extract the
from the number represented above. What's the best way to do it?

Answer Source
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download