We're dividing 997958 by 37 
Let's see how many times 37 fits into 997958.

Going ahead to step 1:
When dividing 9 by 37, we get 0 with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Include the next digit (9) from the dividend after 9, then repeat: 99 / 37

Let's proceed to step 2:
When dividing 99 by 37, we get 2 with a remainder of 25.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we subtract 74 from 99, we get 25.
Bring next digit (7) of the dividend behind the 25 and repeat the process: 257 / 37

Let's proceed to step 3:
The number 37 fits into 257 6 times, leaving a remainder of 35.
The number 6 becomes the next digit in our result. 
Result so far: 26.0
Subtracting 222 from 257 leaves us with 35.
Take the next digit (9) from the dividend and append it to 35, then repeat: 359 / 37

On to step 4:
If we divide 359 by 37, we get 9 and a remainder of 26.
Use 9 as the next digit of our solution. 
Result so far: 269.0
Subtracting 333 from 359 leaves us with 26.
Bring next digit (5) of the dividend behind the 26 and repeat the process: 265 / 37

On to step 5:
265 divided by 37 is 7 with a remainder of 6.
The number 7 becomes the next digit in our result. 
Result so far: 2697.0
Subtracting 259 from 265 leaves us with 6.
Fetch the next digit (8) from the dividend, attach it to 6 and continue: 68 / 37

Moving on to step 6:
68 divided by 37 is 1 with a remainder of 31.
Record the quotient 1 as the next digit in the result. 
Result so far: 26971.0
Subtract 37 from 68 to get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

On to step 7:
If we divide 310 by 37, we get 8 and a remainder of 14.
The next digit of our result is 8. 
Result so far: 26971.8
The remainder is 14 after subtracting 296 from 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 8:
If we divide 140 by 37, we get 3 and a remainder of 29.
Put 3 as the next digit of the answer. 
Result so far: 26971.83
The remainder is 29 after subtracting 111 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 9:
37 can be fit into 290 7 times, resulting in a remainder of 31.
Put 7 as the next digit of the answer. 
Result so far: 26971.837
Subtracting 259 from 290 leaves us with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Moving on to step 10:
37 can be fit into 310 8 times, resulting in a remainder of 14.
Use 8 as the next digit of our solution. 
Result so far: 26971.8378
Subtracting 296 from 310 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 11:
140 divided by 37 is 3 with a remainder of 29.
Put 3 as the next digit of the answer. 
Result so far: 26971.83783
If we subtract 111 from 140, we get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 12:
When dividing 290 by 37, we get 7 with a remainder of 31.
Write down 7 as next digit of the result. 
Result so far: 26971.837837
Deduct 259 from 290 and we're left with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Let's proceed to step 13:
37 can be fit into 310 8 times, resulting in a remainder of 14.
Use 8 as the next digit of our solution. 
Result so far: 26971.8378378
Subtracting 296 from 310 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 14:
The number 37 fits into 140 3 times, leaving a remainder of 29.
Record the quotient 3 as the next digit in the result. 
Result so far: 26971.83783783
Subtracting 111 from 140 leaves us with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

The final result is 26971.83783783 with a remainder of 2.9e-08.