State One Difference Between the Floating Point Literals Float and Double.
Advertisements
Questions
State one difference between the floating point literals float and double.
State one difference between the floating point literal and double type literal.
Distinguish Between
Advertisements
Solution 1
| float literals | double literals |
| The float literals has a limited range to store decimal data items. | The double literals has a wider range as compared to float to store decimal data items. |
shaalaa.com
Solution 2
Floating point literal is a fractional number with short precision and the values can range from -3.4E+38 to 3.4E+38, whereas double type literal is used for long precision and the values can range from -l.7E+308 to l.7E+308.
shaalaa.com
Is there an error in this question or solution?
Chapter 1.03: Values and Data Types - Review Insight [Page 31]
