MathJax with AsciiMath renders the expression 1,000/5
as 1, 000/5, where the numerator of the fraction just shows as 000 instead of 1,000.
JSFiddle: https://jsfiddle.net/kai100/wLhbqkru/
The MathJax documentation is silent about thousands separators.
The Stack Overflow answer below answers this question for TeX input, but I need it for input in AsciiMath format, and have not been able to make it work by changing "Tex" to "AsciiMath" in the config file: mathjax commas in digits
Any help would be much appreciated. Thank you.
Setting
tells AsciiMath to use the European number format, which uses a comma as the decimal place separator rather than a period. That is why you are not longer seeing "0.12" treated as a number. AsciiMath does not have a mechanism of parsing commas every three digits.
The best I can suggest is use a AsciiMath pre-filter to pre-process the AsciiMath to remove the commas before AsciiMath parses the expression. Adding something like
to the page just before the script that loads MathJax.js should do the trick. Note that this will mean the commas don't appear in the output, either; there is no natural way to do that, unless you wanted to add commas to ALL numbers that have 4 or more digits (even if they didn't have commas to start with). That would require a post-filter to go back over the MathML that is produced and convert the numbers to having the commas. Something like:
should work.