Advantages of floating-point numbers over integers.
Q6. What are the advantages of floating-point numbers over integers?
Ans. Floating-point numbers have two advantages over integers. First, they can represent values between the integers. Second, they can represent a much greater range of values.