Let's divide 9740987 by 794
We want to divide 9740987 by 794.

Going ahead to step 1:
794 can be fit into 9 0 times, resulting in a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 794

Moving on to step 2:
The number 794 fits into 97 0 times, leaving a remainder of 97.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 97 leaves us with 97.
Grab the next digit (4) from the dividend, add it to 97, then carry on: 974 / 794

Moving on to step 3:
794 can be fit into 974 1 times, resulting in a remainder of 180.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 180 after subtracting 794 from 974.
Grab the next digit (0) from the dividend, add it to 180, then carry on: 1800 / 794

Going ahead to step 4:
If we divide 1800 by 794, we get 2 and a remainder of 212.
Use 2 as the next digit of our solution. 
Result so far: 12.0
The remainder is 212 after subtracting 1588 from 1800.
Grab the next digit (9) from the dividend, add it to 212, then carry on: 2129 / 794

Let's proceed to step 5:
If we divide 2129 by 794, we get 2 and a remainder of 541.
Put 2 as the next digit of the answer. 
Result so far: 122.0
The remainder is 541 after subtracting 1588 from 2129.
Grab the next digit (8) from the dividend, add it to 541, then carry on: 5418 / 794

Let's proceed to step 6:
When dividing 5418 by 794, we get 6 with a remainder of 654.
Put 6 as the next digit of the answer. 
Result so far: 1226.0
Deduct 4764 from 5418 and we're left with 654.
Grab the next digit (7) from the dividend, add it to 654, then carry on: 6547 / 794

Let's proceed to step 7:
When dividing 6547 by 794, we get 8 with a remainder of 195.
The next digit of our result is 8. 
Result so far: 12268.0
Subtract 6352 from 6547 to get 195.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1950, and continue the process.

Moving on to step 8:
1950 divided by 794 is 2 with a remainder of 362.
Record the quotient 2 as the next digit in the result. 
Result so far: 12268.2
If we take 1588 away from 1950, we end up with 362.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3620, and continue the process.

Step 9:
3620 divided by 794 is 4 with a remainder of 444.
Use 4 as the next digit of our solution. 
Result so far: 12268.24
If we subtract 3176 from 3620, we get 444.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4440, and continue the process.

Let's proceed to step 10:
The number 794 fits into 4440 5 times, leaving a remainder of 470.
Record the quotient 5 as the next digit in the result. 
Result so far: 12268.245
Subtracting 3970 from 4440 leaves us with 470.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4700, and continue the process.

Advancing to step 11:
794 goes into 4700 5 times with a remainder of 730.
The number 5 becomes the next digit in our result. 
Result so far: 12268.2455
If we subtract 3970 from 4700, we get 730.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7300, and continue the process.

The final outcome is 12268.2455, with a leftover of 0.0073.