Let's divide 31797318 by 254
Let's see how many times 254 fits into 31797318.

Going ahead to step 1:
The number 254 fits into 3 0 times, leaving a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 254

Advancing to step 2:
When dividing 31 by 254, we get 0 with a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Grab the next digit (7) from the dividend, add it to 31, then carry on: 317 / 254

Advancing to step 3:
317 divided by 254 is 1 with a remainder of 63.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 254 from 317 to get 63.
Append the next digit (9) from the dividend to 63 and continue with: 639 / 254

Going ahead to step 4:
254 can be fit into 639 2 times, resulting in a remainder of 131.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
Subtracting 508 from 639 leaves us with 131.
Take the next digit (7) from the dividend and append it to 131, then repeat: 1317 / 254

Advancing to step 5:
1317 divided by 254 is 5 with a remainder of 47.
The next digit of our result is 5. 
Result so far: 125.0
Subtract 1270 from 1317 to get 47.
Take the next digit (3) from the dividend and append it to 47, then repeat: 473 / 254

Advancing to step 6:
254 goes into 473 1 times with a remainder of 219.
Record the quotient 1 as the next digit in the result. 
Result so far: 1251.0
Subtracting 254 from 473 leaves us with 219.
Fetch the next digit (1) from the dividend, attach it to 219 and continue: 2191 / 254

Step 7:
254 can be fit into 2191 8 times, resulting in a remainder of 159.
The next digit of our result is 8. 
Result so far: 12518.0
If we take 2032 away from 2191, we end up with 159.
Bring next digit (8) of the dividend behind the 159 and repeat the process: 1598 / 254

Let's proceed to step 8:
The number 254 fits into 1598 6 times, leaving a remainder of 74.
Record the quotient 6 as the next digit in the result. 
Result so far: 125186.0
If we subtract 1524 from 1598, we get 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Advancing to step 9:
When dividing 740 by 254, we get 2 with a remainder of 232.
Put 2 as the next digit of the answer. 
Result so far: 125186.2
If we subtract 508 from 740, we get 232.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2320, and continue the process.

Advancing to step 10:
2320 divided by 254 is 9 with a remainder of 34.
Use 9 as the next digit of our solution. 
Result so far: 125186.29
If we take 2286 away from 2320, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 11:
If we divide 340 by 254, we get 1 and a remainder of 86.
Put 1 as the next digit of the answer. 
Result so far: 125186.291
Deduct 254 from 340 and we're left with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

Moving on to step 12:
860 divided by 254 is 3 with a remainder of 98.
Put 3 as the next digit of the answer. 
Result so far: 125186.2913
If we subtract 762 from 860, we get 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

Let's proceed to step 13:
254 goes into 980 3 times with a remainder of 218.
Use 3 as the next digit of our solution. 
Result so far: 125186.29133
If we take 762 away from 980, we end up with 218.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2180, and continue the process.

Our division results in 125186.29133 with a remaining 0.000218.