How to distinguish between float and double in more details? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How to distinguish between float and double in more details?

10th Dec 2019, 3:57 PM
Saiful Sajis
Saiful Sajis - avatar
3 Answers
+ 5
Okay...now i understand. Thank you very much
10th Dec 2019, 4:06 PM
Saiful Sajis
Saiful Sajis - avatar
+ 4
As the name implies, a double has 2x the precision of float. In general a double has 15 decimal digits of precision, while float has 7. check this link 👇 for more information https://www.google.com/amp/s/www.geeksforgeeks.org/difference-float-double-c-cpp/amp/
10th Dec 2019, 4:04 PM
Arsenic
Arsenic - avatar
+ 4
Nice information
12th Dec 2019, 4:44 AM
Azhar Sajis
Azhar Sajis - avatar