JMU
The Representation of Data
An Overview


Prof. David Bernstein
James Madison University

Computer Science Department
bernstdh@jmu.edu


A Quiz

What Is This?

images/binary-data.gif
The Point of the Quiz
Why 0/1?
An Easy First Example - The Counting Numbers
images/counting-numbers.gif
An Interesting Question and Answer
What About Negative Integers?
Going Further: Negative Numbers (cont.)
images/twos_complement.gif
Going Further: Negative Numbers (cont.)
http://imgs.xkcd.com/comics/cant_sleep.png
(Courtesy of xkcd)
What About Real Numbers?
Going Further: What About Real Numbers? (cont.)
Going Further: What About Real Numbers? (cont.)
What About Characters?
What About Characters? (cont.)
What About Other Things?
What About Colors?
What About Pictures?
What About Audio?
What About Programs?
The Quiz Revisited