## Integers

An *integer* is a number that does not have any decimal places. It is a *whole number*, for example, **1,2,3,4** are all integers. **4.3** is **not**. If you were to try and place the number **4.3** into an integer, the number would be truncated to **4**.

There are further different types in an integer as well. Let’s take a look at them one by one.

Below is an example of the integer type `short`

.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy