Can someone explain me double? I dont understand it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can someone explain me double? I dont understand it

Can someone explain me double? I dont understand it how to use double in c++

21st Sep 2018, 1:49 PM
Sainath Dora
4 Answers
+ 2
double (as I know it) means a intreger that can be like 3.304 and have numbers after a dot (very usefull in challenges where you have to look at the decimals
21st Sep 2018, 1:58 PM
Roel
Roel - avatar
+ 4
It stores decimal numbers more precise than a float
21st Sep 2018, 1:59 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 1
it takes decimal numbers. such as double x = 4.45 😉
29th Sep 2018, 5:04 AM
Sajib Khan
Sajib Khan - avatar
0
we can use float instead of double even float stores decimal values?
21st Sep 2018, 2:01 PM
Sainath Dora