code: def arr_base10toN(anum10, aradix, *args):
      
  
      new_num_arr = array(())
      current = anum10
      while current != 0:
          remainder = current % aradix
          new_num_arr = r_[remainder, new_num_arr]
          current = current / aradix
  
      forcelength = new_num_arr.size
      # Optionally, allow user to specify word length
      if len(args): forcelength = args[0]
      while new_num_arr.size < forcelength:
          new_num_arr = r_[0, new_num_arr]
      return new_num_arr
docs: ARGS
          anum10            in      number in base 10
          aradix            in      convert <anum10> to number in base
                                    + <aradix>
  
          OPTIONAL
          forcelength       in      if nonzero, indicates the length
                                    + of the return array. Useful if
                                    + array needs to be zero padded.
  
          DESC
          Converts a scalar from base 10 to base radix. Return
          an array.