Current location - Training Enrollment Network - Mathematics courses - [x] How to get an integer
[x] How to get an integer
In this case, if there are decimals, the decimals will be deleted directly, or rounding will be used.

The function y=[x] is called integer function, also called Gaussian function. The largest integer that does not exceed the real number x is called the integer part of x, and is recorded as [x]. This function is widely used in number theory, function drawing and computer field.

For example, x= 1.9[x]= 1, x=2[x]=2, x=- 1.5[x]=-2.