Arithmetic Operations

From wikinotes

Addition/Subtraction

Multiplication

Division

Components

 divisor
----------
 dividend


            result
         +---------
divisor / dividend

Long Division

   +----
4 / 936
    2
   +----  # 4*2 = 8, closest we can get to 9 without going over
4 / 936
  - 8
  ---
    1
    23
   +----
4 / 936 # (we carry the 3 downwards)
  - 8   #  |
  ----  # \/
    13
   -12  # 4*3 = 12, closest we can get to 
   ---
     1
    234 # <--- result!
   +----
4 / 936
  - 8
  ----
    13
   -12
   ---
     16
    -16  # 4*4 = 16, perfect!
    ---
      0