18040985 ÷ 795 
We're looking to find how many times 795 goes into 18040985.

Step 1:
1 divided by 795 is 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 795

Advancing to step 2:
795 goes into 18 0 times with a remainder of 18.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 18, we get 18.
Include the next digit (0) from the dividend after 18, then repeat: 180 / 795

Step 3:
795 can be fit into 180 0 times, resulting in a remainder of 180.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 180, we get 180.
Take the next digit (4) from the dividend and append it to 180, then repeat: 1804 / 795

Step 4:
If we divide 1804 by 795, we get 2 and a remainder of 214.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 1590 from 1804 and we're left with 214.
Include the next digit (0) from the dividend after 214, then repeat: 2140 / 795

Moving on to step 5:
If we divide 2140 by 795, we get 2 and a remainder of 550.
The number 2 becomes the next digit in our result. 
Result so far: 22.0
If we take 1590 away from 2140, we end up with 550.
Include the next digit (9) from the dividend after 550, then repeat: 5509 / 795

Let's proceed to step 6:
795 can be fit into 5509 6 times, resulting in a remainder of 739.
Write down 6 as next digit of the result. 
Result so far: 226.0
Subtracting 4770 from 5509 leaves us with 739.
Fetch the next digit (8) from the dividend, attach it to 739 and continue: 7398 / 795

Advancing to step 7:
795 goes into 7398 9 times with a remainder of 243.
Put 9 as the next digit of the answer. 
Result so far: 2269.0
Subtract 7155 from 7398 to get 243.
Bring next digit (5) of the dividend behind the 243 and repeat the process: 2435 / 795

Going ahead to step 8:
The number 795 fits into 2435 3 times, leaving a remainder of 50.
Write down 3 as next digit of the result. 
Result so far: 22693.0
Subtracting 2385 from 2435 leaves us with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Advancing to step 9:
The number 795 fits into 500 0 times, leaving a remainder of 500.
The next digit of our result is 0. 
Result so far: 22693.0
Subtracting 0 from 500 leaves us with 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5000, and continue the process.

Advancing to step 10:
5000 divided by 795 is 6 with a remainder of 230.
The number 6 becomes the next digit in our result. 
Result so far: 22693.06
Deduct 4770 from 5000 and we're left with 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2300, and continue the process.

Let's proceed to step 11:
2300 divided by 795 is 2 with a remainder of 710.
The next digit of our result is 2. 
Result so far: 22693.062
The remainder is 710 after subtracting 1590 from 2300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7100, and continue the process.

Moving on to step 12:
If we divide 7100 by 795, we get 8 and a remainder of 740.
Write down 8 as next digit of the result. 
Result so far: 22693.0628
If we subtract 6360 from 7100, 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.

Moving on to step 13:
795 goes into 7400 9 times with a remainder of 245.
Use 9 as the next digit of our solution. 
Result so far: 22693.06289
Subtract 7155 from 7400 to get 245.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2450, and continue the process.

Let's proceed to step 14:
795 can be fit into 2450 3 times, resulting in a remainder of 65.
Write down 3 as next digit of the result. 
Result so far: 22693.062893
Subtract 2385 from 2450 to get 65.
Since there are no more digits in the dividend, we add a zero to the remainder making it 650, and continue the process.

Going ahead to step 15:
795 goes into 650 0 times with a remainder of 650.
The next digit of our result is 0. 
Result so far: 22693.062893
Subtracting 0 from 650 leaves us with 650.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6500, and continue the process.

On to step 16:
795 can be fit into 6500 8 times, resulting in a remainder of 140.
The next digit of our result is 8. 
Result so far: 22693.06289308
If we take 6360 away from 6500, we end up with 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1400, and continue the process.

In conclusion, the division gives 22693.06289308 with a balance of 1.4e-07.