Numbers
Last updated: January 8, 2026
Numbers are the basic objects used to count, measure, quantify and calculate things.
Sets of numbers
There are multiple sets of numbers:
- Natural numbers: N={0,1,2,3,4,...}
- Integers: Z={...,−5,−4,−3,−2,−1,0}∪N
- Rational: Q={35,1.5,...}∪Z
- Real: R={π,2,e,...}∪Q
- Complex: C={1+i,2+3i,...}∪R
, where π, e and i are constants.
Natural numbers
Numbers from 1 to ∞ with step of 1.
Integers
Numbers from −∞ to 0 with step of 1 and all natural numbers.
Rational numbers
Numbers that are fractions in form of nm, where n=0 and all integers.
Real numbers
Numbers with infinitely long decimal expansion that does not repeat and all rational numbers. Example is π which is 3.1415926... and never repeats.
Complex numbers
All real numbers and numbers that have two parts - real part plus real constant multiplied by i. Example is π+ei or 3+2i.
Number operations
There are a couple of operations we can do with numbers:
- Addition (+) and inverse operation Subtraction (−);
- Multiplication (∗) and inverse operation Division (/);
- Exponentiation (xa) and inverse operations Logarithm (logab) and Roots (ab).
Number representations
There are a few ways to represent a number:
- Decimal (Denary) an...a4a3a2a1a0.a−1a−2...a−m, where ai∈{0,1,2,3,...,9} and each ai represents a×10i, for example 123.456;
- Binary an...a4a3a2a1a0.a−1a−2...a−m, where ai∈{0,1} and each ai represents a×2i, for example 100101.110001;
- Fraction nm, where m∈R, n∈R and n=0, for example 2356;
- Scientific a0.a−1a−2...a−m×baseb, where ai∈{0,...,base−1}, b∈R and each ai represents a×basei, for example 1.2345×104.