+ 1
What is the difference between float and double?
Can anyone explain?
10 Answers
+ 13
ā¢ Schildt, H. (2003). C++: Complete Reference. 4th ed. New York: McGraw-Hill. Ch. 2.
The range of 'float' and 'double' will depend upon the method used to represent the floating-point numbers. ( Whatever the method, the range is quite large. )
The minimum number of digits of precision for each floating-point type is:
ā¢ float
Typical Size in Bits ā 32
Minimal Range ā Six digits of precision
ā¢ double
Typical Size in Bits ā 64
Minimal Range ā Ten digits of precision
+ 8
Check reference...
https://www.sololearn.com/Discuss/1835681/?ref=app
+ 3
double have longer precision than float, and a double is twice the size of float
+ 2
Parth Lakhani about the difference or what???
+ 2
Parth Lakhani longer precision = more digits behind the dot.
+ 1
Want some depth knowledge about it *AsterisK*
+ 1
Difference *AsterisK*
+ 1
Thank you guys i understood nowš