We're dividing 5798 by 37 
We want to divide 5798 by 37.

Going ahead to step 1:
5 divided by 37 is 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (7) from the dividend after 5, then repeat: 57 / 37

Moving on to step 2:
If we divide 57 by 37, we get 1 and a remainder of 20.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 20 after subtracting 37 from 57.
Include the next digit (9) from the dividend after 20, then repeat: 209 / 37

Going ahead to step 3:
209 divided by 37 is 5 with a remainder of 24.
Write down 5 as next digit of the result. 
Result so far: 15.0
Deduct 185 from 209 and we're left with 24.
Grab the next digit (8) from the dividend, add it to 24, then carry on: 248 / 37

Let's proceed to step 4:
37 goes into 248 6 times with a remainder of 26.
The next digit of our result is 6. 
Result so far: 156.0
Deduct 222 from 248 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 5:
When dividing 260 by 37, we get 7 with a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 156.7
If we subtract 259 from 260, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 6:
37 goes into 10 0 times with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 156.7
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 7:
If we divide 100 by 37, we get 2 and a remainder of 26.
The next digit of our result is 2. 
Result so far: 156.702
Subtract 74 from 100 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 8:
37 can be fit into 260 7 times, resulting in a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 156.7027
If we take 259 away from 260, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 9:
The number 37 fits into 10 0 times, leaving a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 156.7027
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 10:
If we divide 100 by 37, we get 2 and a remainder of 26.
The next digit of our result is 2. 
Result so far: 156.702702
Subtract 74 from 100 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 11:
37 can be fit into 260 7 times, resulting in a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 156.7027027
Subtract 259 from 260 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 12:
When dividing 10 by 37, we get 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 156.7027027
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Our division results in 156.7027027 with a remaining 1e-08.