Dividing integers in a computer program requires special care. Some programming languages treat integer division as in case 5 above, so the answer is an integer. Other languages, such as MATLAB and every computer algebra system return a rational number as the answer, as in case 3 above. These languages also provide functions to get the results of the other cases, either directly or from the result of case 3.
dividing integers in a computer program requires special care some programming languages treat integer division as in case 5 above so the answer is an integer other languages such as matlab and every computer algebra system return a rational number as the answer as in case 3 above these languages also provide functions to get the results of the other cases either directly or from the result of case 3