bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java double Keyword

❮ Java Keywords

Example

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

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

Previous

Java do Keyword

Next

Java else Keyword