Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Meaning and difference between integer variable and floating-point variable
Meaning and difference between integer variable and floating-point variable
An integer is a set of parts of an integer; Floating-point type is a set of real numbers with decimal places.

Integer variables are variables that store integers. Under Dos, the range is:-32668 ~ 32767; Under Windows, the range is -2 to the 32nd power to-1.

Floating-point variable: a variable that represents real numbers in floating-point form, and also specifies the occupied space size and number of bytes; And the scope of representation.