Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Whether integer data is allowed to be stored in the implementation variable.
Whether integer data is allowed to be stored in the implementation variable.
Example: You can write

flotage

a = 5;

On the surface, it is a real variable that puts integer, but actually it converts integer 5 into decimal 5.0. In the variable A, it is no longer an integer, but 1.

Generally speaking, we say that we can't put the whole quantity.

Give another example.

a/2

Then the result is 2.5, and if it is 5/2, the result is 2.

Because c is all integer operations, the result is also an integer.