English

State One Difference Between the Floating Point Literals Float and Double. - Computer Applications

Advertisements
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

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]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.03 Values and Data Types
Review Insight | Q 14. | Page 31
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×