Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
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