Questions tagged [integer-division]

Anything related to the integer division operation, i.e. that special form of division which is performed between two integer numbers and which in math results in a quotient and a remainder. This is mostly relevant for languages which have specific integer data-types, for which the division is an integer division, or for languages having a specific operator/function to perform integer division.

Anything related to the integer division operation, i.e. that special form of division which is performed between two integer numbers and which in math results in a quotient and a remainder. This is mostly relevant for languages which have specific integer data-types, for which the division is an integer division, or for languages having a specific operator/function to perform integer division.

619 questions
-4
votes
4 answers

Integer division by zero

The error returned is "Unhandled exception at 0x01355144 in Homework_3_Problem_15.exe: 0xC0000094: Integer division by zero." I can see that the variable 'greatestCommonDivisor' is being assigned a value of 0, but I can't figure out why. Here's my…
-4
votes
1 answer

Figure out if a very large number is divisible by another

I am dealing with a programming question where I need to divide a very big number, of the order of 10^50000 by another of the order of 1000, in order to figure out if one is divisible by the other. So I need to use strings to store this large…
gravitas
  • 21
  • 1
  • 4
-4
votes
1 answer

java program - divisibility test with varification - how do i write this in textpad

i have the program written however I have two problems and need assistance to correct. the problems are 1) i do not want the counter i to go from 1 to x because then it would try the divisibility test for every number less than the actual user…
-5
votes
1 answer

Why the output is coming like this?

When I tried to do division of 6/3 the output comes like this 2 / -1431650288. What's wrong in code? My program in c is like this: #include int main(){ char Operator; int num1, num2; printf("Enter the operator in which you…
Vikesh Patil
  • 9
  • 2
  • 2
  • 5
1 2 3
41
42