function fillUpDigits theNum, digs
  repeat until the length of theNum >= digs
    put 0 before theNum
  end repeat
  return theNum
end fillUpDigits