This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:cs:chapter_3_11 [2025/12/11 14:19] – [Floating point] ktokarz | en:multiasm:cs:chapter_3_11 [2026/01/10 20:18] (current) – pczekalski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Fundamentals of Data Encoding, Big Endian, Little Endian ====== | ====== Fundamentals of Data Encoding, Big Endian, Little Endian ====== | ||
| - | The processor can work with different types of data. These include integers of different sizes, floating point numbers, | + | The processor can work with different types of data. These include integers of different sizes, floating-point numbers, |
| ===== Integers ===== | ===== Integers ===== | ||
| Line 27: | Line 27: | ||
| {{ : | {{ : | ||
| - | There are two main types of real numbers, called floating-point values. Single precision is a number which is encoded in 32 bits. Double-precision floating-point number is encoded with 64 bits. They are presented in Fig{{ref> | + | There are two main types of real numbers, called floating-point values. Single precision is a number which is encoded in 32 bits. A double-precision floating-point number is encoded with 64 bits. They are presented in Fig{{ref> |
| <figure realtypes> | <figure realtypes> | ||
| Line 43: | Line 43: | ||
| </ | </ | ||
| - | The most common representation for real numbers on computers is standardised in the document IEEE Standard 754. There are two features implemented | + | The most common representation for real numbers on computers is standardised in the document IEEE Standard 754. Two features |
| - | * The Biased exponent | + | * the Biased exponent, |
| - | * The Normalised Mantissa | + | * the Normalised Mantissa. |
| A biased exponent means that the bias value is added to the real exponent value. This results in all positive exponents, which makes it easier to compare numbers. | A biased exponent means that the bias value is added to the real exponent value. This results in all positive exponents, which makes it easier to compare numbers. | ||
| The normalised mantissa is adjusted to have only one bit of the value " | The normalised mantissa is adjusted to have only one bit of the value " | ||