Mathematics Lesson 2 – Number system | Dataplexa

Number Systems

Numbers are not just “values” — they are different categories of values. In real life and computing, we need different number types for different situations: counting, measuring, representing loss, working with precision, modeling signals, and even representing imaginary quantities in engineering.

In this lesson, you will learn the full structure of number types (the number system “family tree”) and how to recognize each type quickly with confidence.


What Is a Number System?

A number system is a structured classification of numbers that tells us:

  • What kinds of numbers exist
  • How they are represented
  • Where each type is used

Think of it like organizing files into folders — the better the organization, the easier it is to work.


1) Natural Numbers (ℕ)

Natural numbers are the numbers used for counting real objects.

Examples: 1, 2, 3, 4, 5, …

  • Used when you count items (students, books, cars)
  • They do not include negatives
  • Some definitions include 0, many start at 1 — we will treat 0 as whole for clarity

2) Whole Numbers (W)

Whole numbers are natural numbers plus zero.

Examples: 0, 1, 2, 3, 4, …

Why zero matters: In computing, zero is everywhere — indexing, empty values, counters, and base cases.


3) Integers (ℤ)

Integers include all positive numbers, negative numbers, and zero.

Examples: -5, -2, -1, 0, 1, 2, 7

Integers are essential when direction, loss, or below-zero values matter.

-3 -2 -1 0 1 2 Negative side Positive side

Important Subtypes You Must Know (Inside Integers)

These are not separate “systems,” but they are extremely important classifications used in mathematics and programming:

  • Positive integers: 1, 2, 3, …
  • Negative integers: -1, -2, -3, …
  • Even numbers: divisible by 2 (…, -4, -2, 0, 2, 4, …)
  • Odd numbers: not divisible by 2 (…, -3, -1, 1, 3, 5, …)
  • Prime numbers: >1, only divisible by 1 and itself (2, 3, 5, 7, 11, …)
  • Composite numbers: >1, have more than two factors (4, 6, 8, 9, 10, …)

In programming, even/odd is often checked using modulus (%), and primes appear in hashing, cryptography, and algorithms.


4) Rational Numbers (ℚ)

A rational number is any number that can be written as a fraction:

p / q where p and q are integers and q ≠ 0

Examples: 1/2, -5/2, 3/4, 7, 0.25, -1.75

Important: Every integer is also rational, because you can write it as a fraction (example: 7 = 7/1).


Rational Numbers as Decimals (Two Types)

Rational numbers become decimals in two common ways:

  • Terminating decimals: stop after some digits (0.5, 2.75, 0.125)
  • Repeating decimals: keep repeating a pattern (0.333..., 0.142857142857...)
Type Example As a Fraction
Terminating 0.75 3/4
Repeating 0.333... 1/3

This matters in computing because decimals are often stored approximately (floating-point), which can cause tiny errors.


5) Irrational Numbers

Irrational numbers cannot be written as a simple fraction. Their decimal form never ends and never repeats.

Examples: π (3.14159...), √2 (1.41421...), e (2.71828...)

These appear naturally in geometry (circles), growth systems, and advanced modeling.

Irrational decimals never repeat

π = 3.14159265358979323846...


6) Real Numbers (ℝ)

Real numbers include all rational and all irrational numbers. They represent every value you can place on a number line.

If you can measure it (length, time, weight, temperature), it is usually represented using real numbers.


7) Complex Numbers (ℂ)

Complex numbers include real and imaginary parts, written as:

a + bi

  • a is the real part
  • b is the imaginary part
  • i is the imaginary unit where i² = -1

Complex numbers might sound “advanced,” but they are very practical in engineering: signals, waves, AC circuits, control systems, and some areas of AI and graphics.

Real Imag a + bi (a on real axis) (b on imaginary axis)

Complete Summary Table (All Major Number Types)

Number Type What It Includes Examples Where It Shows Up
Natural (ℕ) Counting numbers 1, 2, 3 Counting items
Whole (W) Natural + 0 0, 1, 2 Counters, indexing
Integers (ℤ) Negative, zero, positive -3, 0, 5 Profit/loss, temperature
Rational (ℚ) Fractions, terminating/repeating decimals 3/4, 0.25, 0.333… Measurements, rates
Irrational Non-terminating, non-repeating decimals π, √2 Geometry, modeling
Real (ℝ) Rational + irrational -2.5, √2 Most real-world math
Complex (ℂ) Real + imaginary 2 + 3i Signals, circuits

Where Number Systems Are Used in Tech

  • Programming: integers vs floats, type checking, rounding issues
  • Data Science: numeric features, scaling, precision
  • Machine Learning: model weights (real numbers), optimization steps
  • Engineering: complex numbers for wave/signal processing

Practice Questions

Q1. Which number types can represent negative values?

Integers, rational numbers, and real numbers can represent negative values.

Q2. Is 0.125 rational or irrational?

Rational. It is a terminating decimal and equals 1/8.

Q3. Is 0.333... rational or irrational?

Rational. It is a repeating decimal and equals 1/3.

Q4. Give one example of an irrational number.

π or √2 are classic examples of irrational numbers.

Q5. What is the form of a complex number?

A complex number is written as a + bi, where i² = -1.

Quick Quiz

Q1. Which set contains both rational and irrational numbers?

Real numbers (ℝ).

Q2. Which is irrational: 0.5 or √2?

√2 is irrational. 0.5 is rational (1/2).

Q3. Which is an integer: -7 or 2.3?

-7 is an integer. 2.3 is not an integer.

Quick Recap

  • Natural → counting (1,2,3...)
  • Whole → natural + 0
  • Integers → negatives, zero, positives
  • Rational → fractions / terminating or repeating decimals
  • Irrational → never-ending, never-repeating decimals (π, √2)
  • Real → rational + irrational (everything on number line)
  • Complex → a + bi (real + imaginary)