JMU
The Representation of Data
An Overview


Prof. David Bernstein
James Madison University

Computer Science Department
bernstdh@jmu.edu


A Quiz

What Is This?

binary-data
The Point of the Quiz
Why 0/1?
An Easy First Example - The Counting Numbers
counting-numbers
An Interesting Question and Answer
What About Negative Integers?
Going Further: Negative Numbers (cont.)
twos_complement
Going Further: Negative Numbers (cont.)
/imgs
(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