[TriLUG] tax forms and JavaScript

Peter Neilson via TriLUG trilug at trilug.org
Fri Jun 10 11:42:06 EDT 2016


Just tried testing this pdf form:
http://www.dor.state.nc.us/downloads/fillin/D400_webfill.pdf
and found that its behavior is crazier than you suggest.

At one point I entered 500 and it auto-filled it to 500.0000 which is  
truly weird.

The requirement for being allowed to do programming for NC DOR appears to  
be something other than the ability to code correctly. Similarly, their  
software QC appears to be lacking.

On Fri, 10 Jun 2016 11:27:51 -0400, mr-trilug via TriLUG  
<trilug at trilug.org> wrote:

> 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