We're dividing 31690158 by 865 
Our goal is to divide 31690158 by 865.

Step 1:
The number 865 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 865

Going ahead to step 2:
If we divide 31 by 865, we get 0 and a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Fetch the next digit (6) from the dividend, attach it to 31 and continue: 316 / 865

Going ahead to step 3:
If we divide 316 by 865, we get 0 and a remainder of 316.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 316, we get 316.
Fetch the next digit (9) from the dividend, attach it to 316 and continue: 3169 / 865

Moving on to step 4:
If we divide 3169 by 865, we get 3 and a remainder of 574.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Subtract 2595 from 3169 to get 574.
Fetch the next digit (0) from the dividend, attach it to 574 and continue: 5740 / 865

On to step 5:
If we divide 5740 by 865, we get 6 and a remainder of 550.
Use 6 as the next digit of our solution. 
Result so far: 36.0
The remainder is 550 after subtracting 5190 from 5740.
Include the next digit (1) from the dividend after 550, then repeat: 5501 / 865

Let's proceed to step 6:
If we divide 5501 by 865, we get 6 and a remainder of 311.
Record the quotient 6 as the next digit in the result. 
Result so far: 366.0
Subtracting 5190 from 5501 leaves us with 311.
Take the next digit (5) from the dividend and append it to 311, then repeat: 3115 / 865

Step 7:
865 can be fit into 3115 3 times, resulting in a remainder of 520.
The next digit of our result is 3. 
Result so far: 3663.0
Subtract 2595 from 3115 to get 520.
Fetch the next digit (8) from the dividend, attach it to 520 and continue: 5208 / 865

Step 8:
865 can be fit into 5208 6 times, resulting in a remainder of 18.
The number 6 becomes the next digit in our result. 
Result so far: 36636.0
Subtract 5190 from 5208 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Moving on to step 9:
865 goes into 180 0 times with a remainder of 180.
Put 0 as the next digit of the answer. 
Result so far: 36636.0
Subtract 0 from 180 to get 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

Advancing to step 10:
The number 865 fits into 1800 2 times, leaving a remainder of 70.
The next digit of our result is 2. 
Result so far: 36636.02
Subtract 1730 from 1800 to get 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Step 11:
865 goes into 700 0 times with a remainder of 700.
The next digit of our result is 0. 
Result so far: 36636.02
Subtracting 0 from 700 leaves us with 700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7000, and continue the process.

Moving on to step 12:
865 goes into 7000 8 times with a remainder of 80.
Use 8 as the next digit of our solution. 
Result so far: 36636.0208
If we take 6920 away from 7000, we end up with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Going ahead to step 13:
865 can be fit into 800 0 times, resulting in a remainder of 800.
The number 0 becomes the next digit in our result. 
Result so far: 36636.0208
Subtracting 0 from 800 leaves us with 800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8000, and continue the process.

Let's proceed to step 14:
865 goes into 8000 9 times with a remainder of 215.
The number 9 becomes the next digit in our result. 
Result so far: 36636.020809
Subtracting 7785 from 8000 leaves us with 215.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2150, and continue the process.

On to step 15:
The number 865 fits into 2150 2 times, leaving a remainder of 420.
The next digit of our result is 2. 
Result so far: 36636.0208092
Deduct 1730 from 2150 and we're left with 420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4200, and continue the process.

Let's proceed to step 16:
If we divide 4200 by 865, we get 4 and a remainder of 740.
The next digit of our result is 4. 
Result so far: 36636.02080924
If we subtract 3460 from 4200, we get 740.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7400, and continue the process.

The final result is 36636.02080924 with a remainder of 7.4e-07.