Java Programming/Keywords/double

From Wikibooks, open books for an open world
Jump to navigation Jump to search

double is a keyword which designates the 64 bit float primitive type.

The java.lang.Double class is the nominal wrapper class when you need to store a double value but an object reference is required.


double <variable-name> = <float-value>;

For example:

Computer code
double d = 65.55;

See also: