What is difference between float and double?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is difference between float and double??

23rd Dec 2019, 10:16 AM
Hit Shiroya
Hit Shiroya - avatar
2 Answers
+ 2
Float is a single precision and double is a double precision IEEE 754 floating point values. Kindly read it for better understanding.
23rd Dec 2019, 10:29 AM
Avinesh
Avinesh - avatar
0
Pls Specify language. Double range and size is double(Twice) compared to float. float value required 4bytes and double require 8 bytes in C. It may vary in different compilers. See this example. . https://www.sololearn.com/Discuss/2078965/?ref=app
23rd Dec 2019, 11:25 AM
Jayakrishna 🇮🇳