We divide 40257294 by 123
Our goal is to divide 40257294 by 123.

Advancing to step 1:
123 can be fit into 4 0 times, resulting in a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 123

Going ahead to step 2:
123 can be fit into 40 0 times, resulting in a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Bring next digit (2) of the dividend behind the 40 and repeat the process: 402 / 123

Going ahead to step 3:
When dividing 402 by 123, we get 3 with a remainder of 33.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we take 369 away from 402, we end up with 33.
Fetch the next digit (5) from the dividend, attach it to 33 and continue: 335 / 123

Step 4:
123 goes into 335 2 times with a remainder of 89.
Write down 2 as next digit of the result. 
Result so far: 32.0
The remainder is 89 after subtracting 246 from 335.
Grab the next digit (7) from the dividend, add it to 89, then carry on: 897 / 123

Let's proceed to step 5:
123 goes into 897 7 times with a remainder of 36.
Put 7 as the next digit of the answer. 
Result so far: 327.0
Subtract 861 from 897 to get 36.
Include the next digit (2) from the dividend after 36, then repeat: 362 / 123

Step 6:
The number 123 fits into 362 2 times, leaving a remainder of 116.
The number 2 becomes the next digit in our result. 
Result so far: 3272.0
Subtracting 246 from 362 leaves us with 116.
Grab the next digit (9) from the dividend, add it to 116, then carry on: 1169 / 123

Moving on to step 7:
123 can be fit into 1169 9 times, resulting in a remainder of 62.
Put 9 as the next digit of the answer. 
Result so far: 32729.0
Subtract 1107 from 1169 to get 62.
Include the next digit (4) from the dividend after 62, then repeat: 624 / 123

Moving on to step 8:
If we divide 624 by 123, we get 5 and a remainder of 9.
The number 5 becomes the next digit in our result. 
Result so far: 327295.0
Subtract 615 from 624 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 9:
123 can be fit into 90 0 times, resulting in a remainder of 90.
Record the quotient 0 as the next digit in the result. 
Result so far: 327295.0
Subtract 0 from 90 to get 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

On to step 10:
If we divide 900 by 123, we get 7 and a remainder of 39.
Write down 7 as next digit of the result. 
Result so far: 327295.07
If we subtract 861 from 900, we get 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Going ahead to step 11:
390 divided by 123 is 3 with a remainder of 21.
The next digit of our result is 3. 
Result so far: 327295.073
If we take 369 away from 390, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 12:
When dividing 210 by 123, we get 1 with a remainder of 87.
The next digit of our result is 1. 
Result so far: 327295.0731
The remainder is 87 after subtracting 123 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 870, and continue the process.

Advancing to step 13:
If we divide 870 by 123, we get 7 and a remainder of 9.
Use 7 as the next digit of our solution. 
Result so far: 327295.07317
Subtract 861 from 870 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 14:
If we divide 90 by 123, we get 0 and a remainder of 90.
Write down 0 as next digit of the result. 
Result so far: 327295.07317
Subtract 0 from 90 to get 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Going ahead to step 15:
900 divided by 123 is 7 with a remainder of 39.
The next digit of our result is 7. 
Result so far: 327295.0731707
Deduct 861 from 900 and we're left with 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Advancing to step 16:
The number 123 fits into 390 3 times, leaving a remainder of 21.
The next digit of our result is 3. 
Result so far: 327295.07317073
Subtracting 369 from 390 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

In conclusion, the division gives 327295.07317073 with a balance of 2.1e-08.