There is the BigDecimal class that will hold large numbers.