Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What's the difference between C language int and float?
What's the difference between C language int and float?
Int (plastic) float (real) chat (character) are the basic types of data types.

Int (integer) can be expressed in decimal octal hexadecimal.

For example, 1 2 33 256 (decimal)

Float (real number type) can be expressed in decimal and exponential forms.

For example,1.21.1.1.1. These are real number types and must be decimal.

When to use it depends on the calculation and your own requirements.