After long I was exposed to TeX and to a problem that seems to be so simple in traditional languages but surprisingly hard to solve in TeX.
We have system out of our scope of control that provides us with numeric inputs to TeX in the common US format, that is dot separator for fractional part and commas separating thousands. We'd like to do basic transformations using
fp package but it doesn't really support this input. Also, using
\numprint doesn't seem to be working for us.
Is there any easy way how we can strip comma thousand separators off the numbers in TeX before passing it to
fp for further calculations? It's easy to transform the numbers back using
We could remove one comma but is there an easy way to remove them all?