Description
The double numeric type represents a
double precision 64-bit IEEE 754 floating-point number. The default value of a double
instance variable, class variable, and array component is zero, that is, 0.0. The
values of double are from 4.9e-324 to 1.7976931348623157e308.
A floating-point literal is assumed to be of type double; optionally, you can
suffix them with an ASCII letter D or d.
Example
You can declare a double variable, and give it an initial value when you
declare it:
double exampleDouble = 5.0;
Other examples of double literals include:
1e1
2.
.3
0.0
3.14
1e-9d
1e137
Source: The Java Language Specification. Copyright (C) 1996 Sun Microsystems, Inc.