tanszek:oktatas:techcomm:floating-point_representation
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tanszek:oktatas:techcomm:floating-point_representation [2024/10/06 17:35] – [Special Values in Floating-Point Representation] knehez | tanszek:oktatas:techcomm:floating-point_representation [2025/10/14 16:43] (current) – [Special Values in Floating-Point Representation] knehez | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| The formula: | The formula: | ||
| - | $$ \text{Value} = (-1)^S \times 1.M \times 2^{(E - \text{Bias})} $$ | + | $$ \text{value} = (-1)^S \times 1.M \times 2^{(E - \text{Bias})} $$ |
| where **Bias** is 127 for single-precision (32-bit). | where **Bias** is 127 for single-precision (32-bit). | ||
| Line 54: | Line 54: | ||
| | NaN | 0 or 1 | 11111111 | Non-zero value | Represents "Not a Number", | | NaN | 0 or 1 | 11111111 | Non-zero value | Represents "Not a Number", | ||
| - | Try them out here: https://www.h-schmidt.net/FloatConverter/IEEE754.html | + | Try them out here: https://evanw.github.io/float-toy/ |
tanszek/oktatas/techcomm/floating-point_representation.1728236119.txt.gz · Last modified: 2024/10/06 17:35 by knehez
