\ProvidesPackage{devanagaridigits}
        [2010/04/01 v0.1 %
         Formatting of Devanagari digits]

\def\devanagaridigits#1{\expandafter\@devanagari@digits #1@}
\def\@devanagari@digits#1{%
  \ifx @#1% then terminate
  \else
    \ifx0#1०\else\ifx1#1१\else\ifx2#1२\else\ifx3#1३\else\ifx4#1४\else\ifx5#1५\else\ifx6#1६\else\ifx7#1७\else\ifx8#1८\else\ifx9#1९\else#1\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
    \expandafter\@devanagari@digits
  \fi
}
\endinput
