Skip to content
Sahithyan's S1 -- Programming Fundamentals

Data Representation

There are 2 types of data in computers.

Computer memory can be thought of an array of memory cells that each store 1 bit. Total number of bits a memory can hold is limited.

Most Significant Bit (MSB)

In a -bit memory, memory cell at the -th position is the most significant bit. Or left-most bit.

Least Significant Bit (LSB)

In a -bit memory, memory cell at the -th position is the most significant bit. Or right-most bit.

Number of states

A -bit memory can denote different states. Each state can be mapped to some information.

Word

In computing, a word is a fixed-size datum handled as a unit by the instruction set or hardware of a processor.

Word size

Size of a processor’s word.

Representation methods

Numerical

Represents quantifiable and countable things. For example: integers, floating-point numbers.

Integers are considered in 2 sections: signed and unsigned integers.

Non-numerical

Represents all other data other than numerical. For example: text, images, videos, phone numbers.