Lesson 1 of 1 · GCSE level, ages 14 to 16
Arithmetic operators
By the end: I can use a variety of arithmetic operators in a program.
Key learning points
- Arithmetic expressions are used to calculate values.
- Arithmetic expressions can be used in selection statements. Expressions either return as True or False.
- In real division there is no remainder because the entire value is divided.
- Integer division is when any remainder of a division is discarded.
- Modulo division (MOD) will return only the remainder of a division.
Keywords
- operator
- a symbol or word that instructs the computer to perform a specific calculation or action
- arithetic expression
- an expression that results in a numeric value
- integer division
- sometimes known as floor division, is when any remainder of a division is discarded
- modulo division
- an operation that gives you the remainder when one number is divided by another
A common mistake
Mistake: Just like addition, subtraction and multiplication there is only one type of division in programming.
In fact: There are three types of division in programming; real, integer and modulo division. Each deal with remainder values differently and will be useful in different ways in programming.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0. Read the licence