I have implemented couple of macros that should remove commas from numbers. It's nasty dirty stuff, but it works when input is number:
\removecommas{12,34,56.7} % => 123456.7
But it stop working when the input is given by some command, such as:
\newcommand\mynumber{12,34,56.7}
\removecommas\mynumber
Why is this happening? How can I force TeX to expand \mynumber
before commas? I've tried:
\expandafter\removecommas\mynumber
but that didn't seem to help.