We're dividing 31798 by 51 
We're looking to find how many times 51 goes into 31798.

Going ahead to step 1:
The number 51 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
Subtracting 0 from 3 leaves us with 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 51

Moving on to step 2:
When dividing 31 by 51, we get 0 with a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Include the next digit (7) from the dividend after 31, then repeat: 317 / 51

Going ahead to step 3:
If we divide 317 by 51, we get 6 and a remainder of 11.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
If we subtract 306 from 317, we get 11.
Append the next digit (9) from the dividend to 11 and continue with: 119 / 51

Advancing to step 4:
51 can be fit into 119 2 times, resulting in a remainder of 17.
The number 2 becomes the next digit in our result. 
Result so far: 62.0
The remainder is 17 after subtracting 102 from 119.
Include the next digit (8) from the dividend after 17, then repeat: 178 / 51

Step 5:
51 can be fit into 178 3 times, resulting in a remainder of 25.
Use 3 as the next digit of our solution. 
Result so far: 623.0
Subtract 153 from 178 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 6:
51 can be fit into 250 4 times, resulting in a remainder of 46.
The next digit of our result is 4. 
Result so far: 623.4
If we subtract 204 from 250, we get 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Moving on to step 7:
51 goes into 460 9 times with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 623.49
If we take 459 away from 460, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 8:
10 divided by 51 is 0 with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 623.49
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 9:
When dividing 100 by 51, we get 1 with a remainder of 49.
Put 1 as the next digit of the answer. 
Result so far: 623.4901
The remainder is 49 after subtracting 51 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

Advancing to step 10:
51 goes into 490 9 times with a remainder of 31.
Write down 9 as next digit of the result. 
Result so far: 623.49019
Subtract 459 from 490 to get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

On to step 11:
When dividing 310 by 51, we get 6 with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 623.490196
The remainder is 4 after subtracting 306 from 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 12:
40 divided by 51 is 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 623.490196
Subtract 0 from 40 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 13:
When dividing 400 by 51, we get 7 with a remainder of 43.
Record the quotient 7 as the next digit in the result. 
Result so far: 623.49019607
Subtract 357 from 400 to get 43.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

The final result is 623.49019607 with a remainder of 4.3e-08.