import java.math.BigDecimal;
import org.apache.commons.lang.math.NumberUtils;
public class MainClass {
public static void main(String[] args) {
//Create a BigDecimal from a String
BigDecimal bDecimal = NumberUtils.createBigDecimal("123456789");
System.out.println(bDecimal);
}
}
123456789