I am using VTEX (visual Tex). When I run this program, it shows a error message that is
! Undefined control sequence.
\convertto #1#2->\strip@pt \dimexpr
#2*65536/\number \dimexpr 1#1
?
But this program runs in LaTeX successfully. How can I solve this error?
\documentclass{article}
\makeatletter
\def\convertto#1#2{\strip@pt\dimexpr #2*65536/\number\dimexpr 1#1}
\makeatother
\begin{document}
\newdimen\mylength
\mylength=1in
\convertto{cm}{\the\mylength}cm
\end{document}
Output: 2.54 cm