At the same time, as a function, INT function refers to the "rounding function" in common functions in the database. Usually used to take the integer part of a number. Int is a function that rounds numbers down to the nearest integer. Is an integer function.
The most commonly used programs are general integer (integer or integer for short) and long integer (long integer for short). The type of integer is called "int", and the type of long integer is called "long int", which can be abbreviated as "long". Int and long are keywords.
Indicating scope and using skills
Representative range
C language does not specify the expression range of various integer types, that is, it does not specify the binary coding length of various integers. For int and long, only the expression range of long type is not less than int, but they are also allowed to have the same expression range. The concrete C language will specify the expression mode and expression range of integer and long integer.
Use skills
The basic function of the standard function INT(X) is to get the largest integer not greater than x, such as int (3.59) = 3 and INT(-2.0 1)=-3. INT function is a widely used function, and its application skills can be listed purposefully in teaching.