$ sign, decimal places and thousand comma separator - resource guide?
Hi, could someone point me to a good resource with a list of adobe and/or javascript functions?
I created a bunch of forms with fields using the Number selection from the Format tab and thought everything was fine, but have now realized that small rounding errors accumulate, and the end result might be wrong by one or two cents.
On the first form that I’m trying to correct, I have set the Format category to None, and now need to include the $ money sign, the comma separator, and two places after the decimal point. From someone else’s post, in order to include two places after the decimal point, I’ve included in the Run Custom Validation Script:
- event.value = util.printf("%.2f", event.value);
Is this OK to use, or will this also create problems?
Is there a good resource of javascript syntax I could look at to figure out how to include decimal places, dollar signs and thousand comma separators?
