diff --git a/UNB/Year 5/Semester 1/CS3113/In class notes.md b/UNB/Year 5/Semester 1/CS3113/In class notes.md index dce1417..178d944 100644 --- a/UNB/Year 5/Semester 1/CS3113/In class notes.md +++ b/UNB/Year 5/Semester 1/CS3113/In class notes.md @@ -21,4 +21,17 @@ So in binary 110101, as the order is in reverse of the decimals | 0.6 x 2 = 1.2 | 1 | | 0.2 x 2 = 0.4 | 0 | And so on.. so the fraction would be .10110, with 0110 repeating infinitely -So the final number would be 110101.10110... \ No newline at end of file +So the final number would be 110101.10110... + +**Normalization** is the process is the process of adjusting a number so only 1 non zero digit on the left side of a number, i.e. the number is in scientific notation + +## Floating point number types + +| Precision | Sign | Exponent | Mantissa | +| ----------- | ---- | -------- | -------- | +| single | 1 | 8 | 23 | +| double | 1 | 11 | 52 | +| long double | 1 | 15 | 64 | +Truncation types +**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 \ No newline at end of file