❮ Java Keywords
double myNum = 19.99d; System.out.println(myNum);
Try it Yourself »
The double keyword is a data type that can store fractional numbers from 1.7e−308 to 1.7e+308.
double
Note that you should end the value with a "d":
Read more about data types in our Java Data Types Tutorial.
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!