# Number sets in LaTeX

To write number sets such as real numbers ($\mathbb{R}$), we need to use additional package either amssymb or amsfonts. In preamble, just type

\usepackage{amssymb}
or
\usepackage{amsfonts}.

Then, we can use the command mathbb like \mathbb{set}.

• Real numbers ($\mathbb{R}$) contain every number except complex numbers.
• Natural numbers ($\mathbb{N}$) = {1, 2, 3, 4, …}.
• Whole numbers ($\mathbb{W}$) = {0, 1, 2, 3, 4, …}.
• Integers ($\mathbb{Z}$) = {…, -3, -2, -1, 0, 1, 2, 3, …}.
• Rational numbers ($\mathbb{Q}$) can be written as a ratio of two integers such as 1/2 and 3/7.
• Irrational numbers ($\mathbb{I}$) contain all numbers that cannot be written as rational number: $\pi$ and $\sqrt{2}$.