Skip to main content\(\newcommand{\N}{\mathbb N}
\newcommand{\Z}{\mathbb Z}
\newcommand{\Q}{\mathbb Q}
\newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 6.7 Summary
Here is what we covered in this chapter:
-
Converting between decimal and binary numbers
-
Negative number representation
-
Three ways a binary number can be interpreted: unsigned integer, signed magnitude, binary 2βs complement
-
Hexadecimal numbers as short-hand for binary
-
Converting (casting) between data types: ave = ((float) a)/((float) b);
-
Modulo operation to find the remainder in integer division: 8 % 5 = 3