2024-09-11 09:06:43
This commit is contained in:
parent
ec5ebecd65
commit
a3d8fe60da
@ -36,4 +36,15 @@ Truncation types
|
|||||||
**Chopping**: Omit the numbers that we don't want, looking to the first bit that we want to erase
|
**Chopping**: Omit the numbers that we don't want, looking to the first bit that we want to erase
|
||||||
**Rounding**: We should take care about the first digit that we want to omit and adjust the 52nd bit
|
**Rounding**: We should take care about the first digit that we want to omit and adjust the 52nd bit
|
||||||
|
|
||||||
**Machine Epsilon**: Difference between the smallest floating point number greater than 1 and 1, ie the smallest number that when added to 1, will be different than 1
|
**Machine Epsilon**: Difference between the smallest floating point number greater than 1 and 1, i.e. the smallest number that when added to 1, will be different than 1
|
||||||
|
|
||||||
|
IEEE rounding to nearest role:
|
||||||
|
1. If we have zero in the 53rd bit, we will round down
|
||||||
|
2. If we have one as the 53rd bit, we will round up
|
||||||
|
1. If the 52nd bit is one we will round up
|
||||||
|
2. If the 52nd bit is zero will round down
|
||||||
|
|
||||||
|
Convert a real number to a floating point number:
|
||||||
|
1. Decimal to binary number
|
||||||
|
2. Justify step: Shift the radix to the right of the left most one, compensate with the exponent. 100.1 -> 1.0001 x_2^3
|
||||||
|
3. We do it with respect to p.A d.p 52 numbers ??? I think she means IEEE rounding
|
Loading…
Reference in New Issue
Block a user