Is there a datatype in Java that stores a decimal number more precisely than a double?
double
Yes: the java.math.BigDecimal class.