THE WORLD'S LARGEST WEB DEVELOPER SITE

Java double Keyword

❮ Java Keywords


Example

double myNum = 19.99d;
System.out.println(myNum);

Run example »


Definition and Usage

The double keyword is a data type that can store fractional numbers from 1.7e−308 to 1.7e+308.

Note that you should end the value with a "d":


Related Pages

Read more about data types in our Java Data Types Tutorial.


❮ Java Keywords