- How is double represented in binary?
- What is double precision data?
- What is used to represent a double precision variable?
- How many bytes can be stored by double precision number?
How is double represented in binary?
There are 64 bits to represent a double (compared to 32 for int). The sign is represented by a bit this time (1 for "-" and 0 for "+"). The exponent is an 11-bit binary number, but is stored as a "positive" number in the range 0..
What is double precision data?
Double precision means the numbers takes twice the word-length to store. On a 32-bit processor, the words are all 32 bits, so doubles are 64 bits.
What is used to represent a double precision variable?
For single precision, 32 bits are used to represent the floating-point number. For double precision, 64 bits are used to represent the floating-point number.
How many bytes can be stored by double precision number?
The length of a double is 64 bits or 8 bytes. Doubles are encoded using the IEEE standard for normalized double-precision floating-point numbers.