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
37.9.NumberUtils | ||||
37.9.1. | NumberUtils.toInt | ![]() | ||
37.9.2. | NumberUtils.max | ![]() | ||
37.9.3. | NumberUtils.isNumber | ![]() | ||
37.9.4. | NumberUtils.isDigits | ![]() | ||
37.9.5. | NumberUtils.createBigDecimal | ![]() | ||
37.9.6. | NumberUtils.compare | ![]() |