Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language real variable
C language real variable
First of all, we must distinguish between variables and constants.

Generally speaking, variables are variable quantities, and in a program, the value of variables is variable; A constant is a constant quantity. In a program, a constant value is a constant.

Let's talk about integer and real type first.

Integer is a variable or constant whose value is an integer; A real number type is a variable or constant whose value is a real number.

real number

Include rational numbers and irrational numbers. Among them, irrational number is infinite acyclic decimal, and rational number includes integer and fraction.

Float is a single-precision real type, so yes!

Be detailed enough!