java BigDecimal(9) code example Example: how to initialize bigdecimal in java BigDecimal num = new BigDecimal(123);