Tutorials References Exercises Videos NEW Menu
Paid Courses Website NEW

Java double Keyword

❮ Java Keywords


double myNum = 19.99d;

Try it Yourself »

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