shahar
Full Member
- Joined
- Jul 19, 2018
- Messages
- 511
In C language Help Window you see:
When op1 and op2 are integers and the quotient is not an integer:
1. If op1 and op2 have the same sign, op1 / op2 is the largest integer less than the true quotient, and op1 % op2 has the sign of op1.
2. If op1 and op2 have opposite signs, op1 / op2 is the smallest integer greater than the true quotient, and op1 % op2 has the sign of op1.
The sign % is getting the remainder from number.
For example, 2%1 say how many times 2 is in the smallest multiple of 1, and the answer is zero. So, the remainder of 2 by 1 is 0.
1. What the difference between remainder to modulus?
2. What is true quotient?
3. Is there exist the expression false quotient?
4. Is there are more words or expressions that means quotient? true quotient?
Thanks to who is help.
When op1 and op2 are integers and the quotient is not an integer:
1. If op1 and op2 have the same sign, op1 / op2 is the largest integer less than the true quotient, and op1 % op2 has the sign of op1.
2. If op1 and op2 have opposite signs, op1 / op2 is the smallest integer greater than the true quotient, and op1 % op2 has the sign of op1.
The sign % is getting the remainder from number.
For example, 2%1 say how many times 2 is in the smallest multiple of 1, and the answer is zero. So, the remainder of 2 by 1 is 0.
1. What the difference between remainder to modulus?
2. What is true quotient?
3. Is there exist the expression false quotient?
4. Is there are more words or expressions that means quotient? true quotient?
Thanks to who is help.