We divide 3191097 by 645
We want to divide 3191097 by 645.

On to step 1:
The number 645 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
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 / 645

Going ahead to step 2:
The number 645 fits into 31 0 times, leaving a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Include the next digit (9) from the dividend after 31, then repeat: 319 / 645

On to step 3:
If we divide 319 by 645, we get 0 and a remainder of 319.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 319 after subtracting 0 from 319.
Grab the next digit (1) from the dividend, add it to 319, then carry on: 3191 / 645

Advancing to step 4:
The number 645 fits into 3191 4 times, leaving a remainder of 611.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtracting 2580 from 3191 leaves us with 611.
Include the next digit (0) from the dividend after 611, then repeat: 6110 / 645

Step 5:
645 goes into 6110 9 times with a remainder of 305.
Write down 9 as next digit of the result. 
Result so far: 49.0
If we take 5805 away from 6110, we end up with 305.
Fetch the next digit (9) from the dividend, attach it to 305 and continue: 3059 / 645

Moving on to step 6:
3059 divided by 645 is 4 with a remainder of 479.
Write down 4 as next digit of the result. 
Result so far: 494.0
Deduct 2580 from 3059 and we're left with 479.
Take the next digit (7) from the dividend and append it to 479, then repeat: 4797 / 645

On to step 7:
645 can be fit into 4797 7 times, resulting in a remainder of 282.
Write down 7 as next digit of the result. 
Result so far: 4947.0
If we subtract 4515 from 4797, we get 282.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2820, and continue the process.

Going ahead to step 8:
The number 645 fits into 2820 4 times, leaving a remainder of 240.
Record the quotient 4 as the next digit in the result. 
Result so far: 4947.4
If we take 2580 away from 2820, we end up with 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Advancing to step 9:
645 goes into 2400 3 times with a remainder of 465.
Record the quotient 3 as the next digit in the result. 
Result so far: 4947.43
The remainder is 465 after subtracting 1935 from 2400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4650, and continue the process.

Advancing to step 10:
645 goes into 4650 7 times with a remainder of 135.
Use 7 as the next digit of our solution. 
Result so far: 4947.437
If we take 4515 away from 4650, we end up with 135.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1350, and continue the process.

On to step 11:
If we divide 1350 by 645, we get 2 and a remainder of 60.
Put 2 as the next digit of the answer. 
Result so far: 4947.4372
Deduct 1290 from 1350 and we're left with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Going ahead to step 12:
The number 645 fits into 600 0 times, leaving a remainder of 600.
The next digit of our result is 0. 
Result so far: 4947.4372
The remainder is 600 after subtracting 0 from 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6000, and continue the process.

Let's proceed to step 13:
6000 divided by 645 is 9 with a remainder of 195.
The number 9 becomes the next digit in our result. 
Result so far: 4947.437209
Deduct 5805 from 6000 and we're left with 195.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1950, and continue the process.

Advancing to step 14:
The number 645 fits into 1950 3 times, leaving a remainder of 15.
The number 3 becomes the next digit in our result. 
Result so far: 4947.4372093
The remainder is 15 after subtracting 1935 from 1950.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 15:
150 divided by 645 is 0 with a remainder of 150.
Put 0 as the next digit of the answer. 
Result so far: 4947.4372093
The remainder is 150 after subtracting 0 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

The final result is 4947.4372093 with a remainder of 1.5e-07.