8171147 divided by 645 
Let's see how many times 645 fits into 8171147.

Moving on to step 1:
The number 645 fits into 8 0 times, leaving a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Include the next digit (1) from the dividend after 8, then repeat: 81 / 645

Advancing to step 2:
81 divided by 645 is 0 with a remainder of 81.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 81 to get 81.
Take the next digit (7) from the dividend and append it to 81, then repeat: 817 / 645

On to step 3:
645 goes into 817 1 times with a remainder of 172.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 645 away from 817, we end up with 172.
Fetch the next digit (1) from the dividend, attach it to 172 and continue: 1721 / 645

Let's proceed to step 4:
If we divide 1721 by 645, we get 2 and a remainder of 431.
The next digit of our result is 2. 
Result so far: 12.0
Deduct 1290 from 1721 and we're left with 431.
Grab the next digit (1) from the dividend, add it to 431, then carry on: 4311 / 645

Going ahead to step 5:
4311 divided by 645 is 6 with a remainder of 441.
Put 6 as the next digit of the answer. 
Result so far: 126.0
If we take 3870 away from 4311, we end up with 441.
Take the next digit (4) from the dividend and append it to 441, then repeat: 4414 / 645

On to step 6:
645 goes into 4414 6 times with a remainder of 544.
The number 6 becomes the next digit in our result. 
Result so far: 1266.0
Subtract 3870 from 4414 to get 544.
Grab the next digit (7) from the dividend, add it to 544, then carry on: 5447 / 645

Advancing to step 7:
When dividing 5447 by 645, we get 8 with a remainder of 287.
Put 8 as the next digit of the answer. 
Result so far: 12668.0
Subtracting 5160 from 5447 leaves us with 287.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2870, and continue the process.

Moving on to step 8:
2870 divided by 645 is 4 with a remainder of 290.
Write down 4 as next digit of the result. 
Result so far: 12668.4
If we take 2580 away from 2870, we end up with 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2900, and continue the process.

Let's proceed to step 9:
2900 divided by 645 is 4 with a remainder of 320.
Put 4 as the next digit of the answer. 
Result so far: 12668.44
The remainder is 320 after subtracting 2580 from 2900.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3200, and continue the process.

In conclusion, the division gives 12668.44 with a balance of 0.32.