Data Representation and Recording
Data Representation: Preserving Meaning in Stored Values
Data Representation concerns how a computer expresses business facts as digital values. You meet it when customer names move between systems, product identifiers enter a spreadsheet, or transaction records are saved for later analysis. A value can arrive with every stored bit unchanged and still be interpreted incorrectly. Reliable recording therefore preserves both the representation and the context needed to understand it.
Bits need interpretation
A bit is a binary digit with a value of 0 or 1. A byte contains eight bits. Sequences of bits can represent numbers, text, images, sound, and other information, but their meaning depends on agreed rules.
For example, the byte 01000001 represents the number 65 when interpreted as an unsigned binary integer. Under UTF-8 text encoding, that same byte represents the letter A. The bits alone do not tell you which interpretation was intended.
A data type establishes the kind of value a field contains and helps determine which operations make sense. A quantity can support arithmetic. A product identifier may contain only digits, yet adding two identifiers has no useful business meaning. Treating that identifier as text can also preserve significant leading zeros.
Choose rules that preserve the intended value
An encoding is a rule for mapping information to a representation. A character encoding such as UTF-8 specifies how text characters are represented by bytes. The system reading those bytes needs the appropriate encoding to reproduce the text correctly.
Encoding is different from encryption. Character encoding makes text representable; encryption uses a key to protect information from unauthorized reading. Specifying UTF-8 does not make a customer file confidential.
Different business fields need different representation decisions:
Business value | Suitable representation | Meaning that needs protection |
|---|---|---|
Product identifier 00126 | Text | Leading zeros and exact characters |
Number of units ordered | Integer | A count of whole units |
Price of 32.45 euros | Decimal value with currency recorded | Monetary amount and currency |
Delivery date | Explicit year, month, and day | Calendar date without ambiguous ordering |
Customer name | Unicode text encoded consistently | Accents and other required characters |
For monetary values, a fixed decimal scale or an integer number of minor currency units can preserve the required precision. The currency and scale still need to be known. A stored integer of 3245 does not explain whether the intended amount is 3245 euros or 32.45 euros.
Images and sound also use representation rules. Digital images commonly represent a grid of pixels; digital sound commonly represents samples taken over time. Resolution, sampling choices, and encoding affect which details are retained. Lossless compression permits exact recovery of the input data. Lossy compression discards some information, so it cannot generally reproduce that input exactly.
Record the value and its context
Recording means retaining a representation so that it can be retrieved later. Context may be stored in the record itself or in an associated specification. Useful context includes field types, units, currencies, character encoding, and date conventions. For an event time, a UTC offset or another unambiguous time reference is needed when local clock times could refer to different moments.
A written date such as 05/06/2026 is ambiguous without an ordering convention. Recording it as 2026-06-05 communicates 5 June 2026 under the year-month-day convention, but you should make that conversion only after establishing the source meaning.
Validation helps detect representation problems before records are accepted. You can check that a count is a whole number, required currency information exists, and imported text reproduces the source characters. These checks establish consistency with specified rules; they do not establish that the original business fact was recorded truthfully.
What to remember
- Bits require representation rules to convey meaning.
- Choose a data type that preserves the business value, including significant formatting.
- Record encoding and relevant context alongside the data or in an associated specification.
- Exact recovery requires preserving information before it is discarded.
Example: Recording a Supplier Transaction
A purchasing team receives the following transaction from a supplier. The supplier confirms that product-code characters, including leading zeros, are significant. The amount is in British pounds, and the file uses UTF-8. The supplier has not specified its date-ordering convention.
Field | Received value |
|---|---|
Product code | 000418 |
Amount | 47.80 |
Transaction date | 03/04/2026 |
Supplier name | Café Linden |
The team needs a record that another system can interpret reliably.
a) Choose representations for the product code and amount. State the context that should accompany the amount.
First identify what each value means. The product code identifies a product; it is not a quantity. Store 000418 as text and preserve all six characters. Converting it to the integer ________ would discard significant leading zeros.
The amount is a monetary quantity. Store it as a decimal value with two decimal places and record the currency as GBP. The resulting interpreted amount is 47.80 British pounds. A representation using the integer 4780 minor units would also work if the specification explicitly recorded both GBP and the minor-unit scale.
b) Explain how to record the date. The supplier subsequently confirms that its convention is day/month/year.
Before the supplier's clarification, 03/04/2026 could mean 3 April or 4 March. The characters alone do not justify choosing one interpretation, so the team should hold the date as unresolved rather than silently convert it.
The confirmation establishes that ________ is the day and ________ is the month. Therefore, the date is 3 April 2026. Record the value as a date and use the explicit year-month-day representation 2026-04-03 when exchanging it as text. Retaining the source value and confirmed convention provides a record of how the conversion was made.
c) Explain how to preserve the supplier name and check that the receiving system has interpreted it correctly.
The source file uses UTF-8, so the receiving system should decode its bytes as UTF-8. It should retain the name as Unicode text, including the accented character in Café.
After import, compare the recorded name with the source and verify that it reads Café Linden. Record UTF-8 as the encoding for subsequent text exports so that another system can interpret those bytes consistently. A successful character check confirms that this name survived the representation and import steps; it does not establish that the supplier's original business details were correct.
An online retailer stores order information electronically. Match each term to its definition to distinguish the units used to represent data from the structures used to organize it.
A collection of related data elements describing one order
A single binary digit with a value of either 0 or 1
A group of eight binary digits
One named data element, such as an order date
Bit
Byte
Field
Record
A supplier exports customer names as UTF-8 text. A receiving system reads the file using a different character encoding, and some accented names appear incorrectly. A comparison confirms that the file's bytes were not altered during transfer. Which change directly addresses the stated problem?