+ 4

What is an integer?

8th Feb 2017, 8:36 PM
Gabboxl
Gabboxl - avatar
2 Answers
+ 3
An integer is a type of variable that can hold a number. As example 0; 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11...3543356 and so on. There is another type of variable: float or floating point. It can holds the numbers integer can hold AND decimal numbers. As example 3.7; 6.34; 656.9 and so on. Negative numbers such as -3; -5; -8; -63567; -5.98; -0.004 are possible numbers for int and float too.
8th Feb 2017, 8:49 PM
TheLastCookie
TheLastCookie - avatar
+ 1
an integer is a number without comas, such as 4 or -1527; something like 4.5 isn't considered an integer anymore
8th Feb 2017, 9:16 PM
ramzi
ramzi - avatar