diff --git a/semester3/spca/parts/01_c/06_floating-point/04_rounding.tex b/semester3/spca/parts/01_c/06_floating-point/04_rounding.tex index e7f7bf2..f3466c7 100644 --- a/semester3/spca/parts/01_c/06_floating-point/04_rounding.tex +++ b/semester3/spca/parts/01_c/06_floating-point/04_rounding.tex @@ -17,7 +17,8 @@ $$ \underbrace{X_1X_2\ldots X_{k - 1}X_k}_\text{Sticky} $$ where $n$ is the number of bits in the mantissa of the format (e.g. $3$ as in the above example of an $8$bit floating point number). -Do keep in mind that when computing them in \lC\ in the standard way, they are inverted, i.e. we need a \texttt{!= 0} at the end to correct. +Do keep in mind that when computing them in \lC\ using shifts that we can use \texttt{!= 0} at the end to change the bit representation to all $0$s with a $0$ or $1$ at the end +(as opposed to possibly a one in a more significant bit). \begin{enumerate} \item \textbf{Guard Bit} $G$ is the least significant bit of the (rounded) result (i.e. it is $B_n$) diff --git a/semester3/spca/spca-summary.pdf b/semester3/spca/spca-summary.pdf index a07da5d..ca29896 100644 Binary files a/semester3/spca/spca-summary.pdf and b/semester3/spca/spca-summary.pdf differ