Question: what is the difference between integer and real data type?
Answer: Integer and Real Data Types. ... Integer variables store numbers exactly and are mainly used to count discrete objects. Real variables are useful many other circumstances as they store numbers using a floating-point representation which can handle numbers with a fractional part as well as whole numbers.