true quotient

davidmath

New member
בשפת C כתוב בחלון העזרה:
קוד:
When op1 and op2 are integers and the quotient is not an integer:


1. If op1 and op2 have the same sign, op1 / p2 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.

​
הסימון % הוא הוצאת שארית (reminader או modulus).
למשל 2%1 פירושו כמה פעמים נכנס 2 בתוך הכפולה הקטנה ביותר של 1, התשובה היא 0. כלומר השארית בחלוקת 2 ב-1 היא 0.
1. מה ההבדל בין remainder ל-modulus?
2. מהו true quotient?
3. האם קיים מושג של false quotient?
4. יש עוד מונחים שקיימים באנגלית ל-quotient? ל-true quotient?
 
למעלה