I have trying to use new command to represent math, and this is what I type in:
\\
\newcommand\fpi2[2][\pi][2]{frac{#1}{#2}}\\
\newcommand\mylim[2][x]{lim_{#1\to #2}}
I'm trying to create a new command which represent $frac{\pi}{2}$
Is it possible for me to use \mylim{${\fpi2}^-$}?

\csname ... \endcsnameworkaround method, you can't have a non-letter (such as the numeral2) be part of a command name. Use a command name such as\fpior\fpitwoinstead. – Mico Sep 11 '13 at 16:58\fracand\limnotfracandlim(in addition to the point of this question that you can not have a command\fpi2.) – David Carlisle Sep 11 '13 at 18:30