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.

 


Login
ADS CODE