Integer is a type of data that represents whole numbers.
You can recognize an integer because it does not have a decimal point and is not enclosed in quotation marks.
42
is an integer-5
is an integer0
is an integer3.14
is not an integer; it’s a float (which means it has a decimal).
So now you know, when an application asks for an integer, they mean a whole number (and not a fraction or decimal).
Tip: have a number with a decimal, but need a whole number? Use the math functions.