What is an integer?

An integer is a number that can be written without a fractional component. For example, 21, 4, 30 and -2048 are integers, while 9.75, 5(1/2) and sqrt(2) are not integers. If you intended integers in maths then these are integers; if in computer science Wikipedia can help you with that.