We focus on studying the decision problems in undergrad complexity theory courses because they are simpler and also questions about many other kinds of computations problems can be reduced to questions about decision problems.
However there is nothing in the definition of Turing machine by itself that restricts it to dealing with decision problems. Take for example the number function computation problems: we want to compute some function $f:\{0,1\}^*\to\{0,1\}^*$. We say that a Turing machine compute this function if on every input $x$, the machine halts and what is left over the tape is equal to $f(x)$.
Wow, you have been given a very restricted "definition" of Turing machines. It is quite clear that it is not Turing-complete in the sense of the Church-Turing hypothesis. – Raphael – 2013-02-08T08:36:57.703
The formal definition of Turing Machine in wikipedia does not suffer from this problem. Are you using the same source for your definition of TM as the person who asked this question?
– Peter Shor – 2013-02-11T05:30:55.803