0
What is use of double
4 odpowiedzi
+ 6
double is used for decimal numbers and it can store 8 byte in the memory
+ 2
double stores no.s with decimal the reason we don't use them in place of integer is that they use more resources.
+ 1
you use double when you will put a decimal numbers in your code
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.