Bug introduced in 10.4 or earlier and persisting through 11.1.1
CASE:3918306 confirmed
I freshly installed Wolfram Mathematica. I can't quite remember how to output a dynamically updated variable number $x$ in dollars?
I did improvise the following:
Manipulate[AccountingForm[x, {Infinity, 2}, DigitBlock -> {3, 2}, NumberSigns -> {"-$", "+$"}], {x, -100000000,100000000, .01}](*Shows tooltipped error: "AccountingForm: Value for option DigitBlock should be a positive integer, Infinity or a pair of positive integers."*) Alternatively, I tried:
AccountingForm[Manipulate[x, {x, -100000000, 100000000, .01}], {Infinity, 2}, DigitBlock -> {3, 2}, NumberSigns -> {"-$","+$"}](*Problem: A number like "67.2" is not displayed as the expected "+$67.20."*) The corresponding output for each piece of code:
What's the code to output a dynamic variable number in dollars? For example, to show the numbers ${-6543.567, 556788.456789}$ as ${-$6,543.57, +$556,788.46}$.
Problem: Dynamically updating AccountingForm[].
(*Does not work*) Manipulate[AccountingForm[x, {Infinity, 2}, DigitBlock -> {3, 2},NumberSigns -> {"-$", "+$"}], {x, -100000000, 1000000000, .01}] Solution: Define AccountingForm[] as a new identical function (with the same desired parameters)
(*Does work*) Dollars[x_] := AccountingForm[x, {Infinity, 2}, DigitBlock -> {3, 2},NumberSigns -> {"-$", "+$"}]; Manipulate[Dollars[x], {x, -100000000, 1000000000, .01}] 


