The remainder is only for the division of integers: two integers are divided. If the quotient is not an integer, the remainder is defined to indicate how much the dividend is greater than the maximum multiple of the divisor that is not greater than the dividend.
Even if the meaning of extended remainder is 6.8/ 1, it can only be said that 6.8 is 0.8 more than 6 times of 1, that is, the remainder is 0.8.
You can use an example in life to say, "If you buy 65438+ 1 exercise book with 6.8 yuan money, you can buy 6 copies, and the balance is 0.8 yuan."
-
You are talking about rounding in computer programming. There are rounding functions in general computer programming languages, which are different in different programming languages or application software:
In C language, you can define integer variables and floating-point variables, and then use coercion to achieve rounding.
Double a =12.34;
int x =(int)A; //Get the result x = 12.
There are also functions such as floor () and ceil ().
In the Java language, there are
1, rounded decimal: Math.floor(3.5)=3.
2. Rounding: Math.rint(3.5)=4.
3. Rounding: Math.ceil(3. 1)=4.
Excel function, with
INT(3.5 1)=3
Lower limit (3.5 1, 1)=3.
There are also functions such as floor. Precision, rounding, rounding down, rounding up, rounding up, TRUNC, etc.
There are other different languages or platforms, all of which are different.