Update page 'Day 1 homework - Xuanyi Wang (Sloetjes)'
@@ -10,11 +10,11 @@
|
|||||||
#### 2. How many bits are the floating point numbers defined by that standard allowed to be?
|
#### 2. How many bits are the floating point numbers defined by that standard allowed to be?
|
||||||
|
|
||||||
|
|
||||||
##### Single-precision format (32-bits)
|
**##### Single-precision format (32-bits)**
|
||||||
|
|
||||||
Single-precision format floating-point numbers are represented using 32 bits, with 1 bit for the sign, 8 bits for the exponent, and 23 bits for the significand (mantissa);
|
Single-precision format floating-point numbers are represented using 32 bits, with 1 bit for the sign, 8 bits for the exponent, and 23 bits for the significand (mantissa);
|
||||||
|
|
||||||
##### Double-precision format (64-bits)
|
**##### Double-precision format (64-bits)**
|
||||||
|
|
||||||
Double-precision floating-point numbers are represented using 64 bits, with 1 bit for the sign, 11 bits for the exponent, and 52 bits for the significand.
|
Double-precision floating-point numbers are represented using 64 bits, with 1 bit for the sign, 11 bits for the exponent, and 52 bits for the significand.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user