Numbers can be represented in different numeral systems and computational formats. Humans commonly use decimal notation, while digital computers use binary representations based on bits. Integers may be stored using fixed-width integer formats, while real-valued quantities are commonly approximated using floating-point formats. A numerical representation determines which values can be stored, how much precision is available and what range of magnitudes can be handled. The choice of representation affects arithmetic behaviour, overflow, underflow and numerical accuracy.
Numerical Representation of Numbers
Numerical representation describes how mathematical numbers are encoded in a form that computers and numerical algorithms can store and process.
N = Σᵢ₌₀ⁿ⁻¹ dᵢbⁱ
Explanation
Variables
| Symbol | Meaning |
|---|---|
N | The numerical value represented. |
dᵢ | The digit at position i. |
b | The base or radix of the numeral system. |
i | The positional index. |
Example or application
The decimal number 13 is represented in binary as 1101₂ because 13 = 1 × 2³ + 1 × 2² + 0 × 2¹ + 1 × 2⁰.
Definition
Numerical representation is the method used to encode numerical values using symbols, digits or computer storage formats so that arithmetic operations can be performed.
Purpose
To explain how numerical values are encoded in positional numeral systems and computer formats.
Importance
Numerical representation determines the values and precision available to a computational system. Understanding it is necessary for interpreting floating-point behaviour, selecting data types and avoiding representation-related errors.
Learning Objectives
Explain positional numeral systems.
Identify the role of a number-system base.
Convert simple binary values to decimal.
Distinguish integer and floating-point representations.
Understand how representation affects numerical computation.
Key Concepts
Numeral system
Positional notation
Binary representation
Decimal representation
Integer format
Floating-point format
Radix
Working Principle
A number is encoded using digits and positional weights determined by a base. In computer arithmetic, the encoded bit pattern is interpreted according to a specified numerical format.
Process
Identify the number-system base.
Determine the available digits.
Assign positional weights.
Calculate the numerical value represented.
For computer storage, identify the relevant data format.
Consider the range and precision of that representation.
Applications
Computer arithmetic
Programming language data types
Digital systems
Floating-point computation
Numerical data storage
Scientific computing
Worked Example
Problem
Convert the binary number 10110₂ into decimal.
Steps
Write the positional expansion: 1 × 2⁴ + 0 × 2³ + 1 × 2² + 1 × 2¹ + 0 × 2⁰.
Calculate: 16 + 0 + 4 + 2 + 0.
Add the values to obtain 22.
Answer
10110₂ = 22₁₀.
Common Misconceptions
Binary representation is not the same as decimal representation.
A finite bit pattern cannot represent every real number exactly.
Integer and floating-point formats have different numerical properties.
The same bit pattern may have different meanings under different data formats.
Practice Questions
| Question | Answer |
|---|---|
What is the binary representation of decimal 10? | 1010₂. |
What is the base of the binary number system? | Base 2. |
Why does numerical representation matter in computing? | It determines the range, precision and arithmetic behaviour of stored numbers. |
Key Takeaway
The way numbers are represented determines how computers store, interpret and calculate numerical values.
Prerequisites
SCI-MAT-014-016
Basic arithmetic
Place value
Binary number systems
Reference
Goldberg, D. What Every Computer Scientist Should Know About Floating-Point Arithmetic.
IEEE Standard for Floating-Point Arithmetic, IEEE 754.
Related Topics
SCI-MAT-014-016
SCI-MAT-014-018
SCI-MAT-014-019
SCI-MAT-014-020
Sources and verification
Sources are shown as provided in the project data. Not every source has yet been independently verified. Please report errors or missing citations.
- Source verification pending; check an authoritative textbook, university, standards body, or peer-reviewed source.