+ 2

There is no need to use double. At that place we can use int or float.why it is necessary to use double.

5th Dec 2017, 9:59 AM
RAGHAV
RAGHAV - avatar
4 Respostas
+ 3
Suppose, if your number is very long after decimal like 24.7364783393729 or say π Or if you want to get a precise result Then, you use double type double x;
5th Dec 2017, 10:08 AM
#RahulVerma
#RahulVerma - avatar
+ 2
We usually use double because it is more precise, it stores more digits of the number. If your running a system that precision is not so important and has thousands of variables, than you would use float to save processing. Hope it helps, cheers!
5th Dec 2017, 10:07 AM
Fonjic
Fonjic - avatar
+ 1
Double is not just “double”. It stands for double the precision. So more precise processing is the result.
5th Dec 2017, 10:08 AM
Suhail P Salim
Suhail P Salim - avatar