Computer Science
Differentiate single precision and double precision data value.
Values & Data Types Java
3 Likes
Answer
- Single precision format uses a total of 32 bits to represent the fractional number. Out of that 32 bits, 24 are used to represent the significand and 8 bits are used to represent the exponent. Double precision format uses a total of 64 bits to represent the fractional number. Out of that 53 bits are used to represent the significand and 11 bits are used to represent the exponent.
- Double precision format stores fractional numbers at higher accuracy than single precision format.
- float data type stores a number in single precision format whereas double data type stores a number in double precision format.
Answered By
3 Likes