Home > Back-end >  Can put a real number is assigned to the integer variables
Can put a real number is assigned to the integer variables

Time:10-01

If you can automatically into integer

CodePudding user response:

Yes, the value of a variable for the integer part of the real number

CodePudding user response:

Plastic variable will only receive the integer part of the real number, do you want all the assignment, you can assign a float or double

CodePudding user response:

Will automatically round

CodePudding user response:

reference Mawkish_ reply: 3/f
automatically rounded?

Don't
This kind of question yourself try to know

CodePudding user response:

Floating point number assigned to the integer data, can be thought of as integer arithmetic,
  • Related