[TriLUG] tax forms and JavaScript
mr-trilug via TriLUG
trilug at trilug.org
Fri Jun 10 12:06:11 EDT 2016
This is a query about JavaScript programming.
The NC-DOR D-400 web-fill form instructions assert: "Enter Whole U.S.
Dollars Only."
To me this means: do NOT enter a decimal and two digits, including
".00."
To DOR it appears to mean enter with ".00", e.g. "xxxxxx.00".
Questions:
1. Is my interpretation, "xxxxxxx" reasonable?
2. Would JavaScript have any difficulty in being programmed to read
both xxxxxxx. AND xxxxxxx.cc, including xxxxxx.00? Why should it
matter to JS?
3. If the answer to [2] is NO DIFFICULTY, would JavaScript just do the
proper calculations by default or would it need some extra code to
cope with numbers in different formats?
Thanks for comments.
M. Rulison
More information about the TriLUG
mailing list