wiki:encyclopedia:representation
Representation
A representation is the way an object or phenomenon is expressed, or represented, inside a program.
Nearly everything in a program is a representation. A numeric value represents a number from mathematics, and a character code represents a letter of an alphabet. More complex objects are built from simpler ones: a colour may be represented as three numbers giving the amounts of red, green and blue, and an image as a grid of pixels, each holding a color. A representation is always narrower than what it represents: a machine integer has a largest value, and three numbers cannot capture every color the eye can see.
wiki/encyclopedia/representation.txt · Last modified: by afendin