Jump to content

Java Programming/Keywords/double

From Wikibooks, open books for an open world

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.

Syntax:

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

For example:

Computer code
double d = 65.55;


See also: