[TriLUG] tax forms and JavaScript

mr-trilug via TriLUG trilug at trilug.org
Fri Jun 10 11:27:51 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 "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.
 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. Rul



More information about the TriLUG mailing list