+ 1
What is the difference between float and double?
Can anyone explain?
10 Respostas
+ 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😊