double (Java)

double is the Java primitive type for numbers with a decimal point, such as 3.14 or -0.5. It stores a 64-bit floating-point value and is the default choice…