How to learn double variable in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to learn double variable in java

Types of variable in java

8th Nov 2020, 3:59 AM
CHING CHONG
CHING CHONG - avatar
1 Answer
0
What do you want to learn about double? * It stores floating point values with a precision upto 15-16 decimal places. * Any floating point value is by default a double and in order to make it a float you have to use 'f' at the end. * It occupies 8 bytes of memory.
8th Nov 2020, 5:21 AM
Avinesh
Avinesh - avatar