Integer

An integer is a whole number with no fractional part — positive, negative, or zero — such as -3, 0, or 42. It is one of the most common numeric data types.

General Programming

Examples

Python

age = 30
print(age + 1)

Output:

31

Java

int age = 30;
System.out.println(age + 1);

Output:

31

See also

Back to the Dictionary