0

What is use of double

21st Oct 2016, 3:33 PM
sanket
4 odpowiedzi
+ 6
double is used for decimal numbers and it can store 8 byte in the memory
21st Oct 2016, 4:45 PM
Lara
Lara - avatar
+ 2
double stores no.s with decimal the reason we don't use them in place of integer is that they use more resources.
4th Nov 2016, 2:34 AM
Sandeep Chatterjee
+ 1
you use double when you will put a decimal numbers in your code
24th Oct 2016, 12:41 PM
Angie Perez
Angie Perez - avatar
0
Generally double is used where we have to deal with big floating values. More importantly, while float takes 4 bytes in memory, double takes 8 bytes thus it is advisable to avoid double as much as possible.
27th Oct 2016, 9:05 AM
Gaurab Bhattacharya
Gaurab Bhattacharya - avatar