A rational number can be written as a fraction a/b. Here a and b are integers: whole numbers such as 0, 1, 2 and their negatives, such as −1 and −2. The denominator, b, cannot be zero. A terminating decimal stops, like 0.25. A repeating decimal repeats a pattern forever, like 0.333… Both are rational: 0.25 = 1/4 and 0.333… = 1/3.
These number groups fit inside one another. Counting numbers are 1, 2, 3, and so on. Whole numbers also include 0. Integers include whole numbers and their negatives. Every integer is rational: for example, −3 = −3/1. The number 1/2 is rational but is not an integer. π is irrational: it cannot be written as a fraction of two integers.
Signs have a small trick. Adding a negative is the same as subtracting. Subtracting a negative is the same as adding. Two negatives in a multiply or a divide make a positive. One negative stays negative.
To add fractions, first give them the same denominator—the bottom number that tells the size of each piece. For example, 1/2 + 1/4 = 2/4 + 1/4 = 3/4. To divide by a nonzero fraction, swap that second fraction’s top and bottom numbers and multiply; this swapped fraction is its reciprocal. For decimal addition, line up the decimal points so the same place values add together.