My program has four subroutines that call MOD one or more times. I'm finding that the various MOD calls in the program will sometimes return NaN. Any ideas on how I could track if this is some problem on my end?
I am only experiencing this on the 64bit platform (10.1.021). The 32bit build works without any problem.
If I replace the MOD call with
I do not get a NaN result.
I wrote out all the values used in the above MOD calculation to a file and wrote a simple program to read in the values and do a MOD on them. This simple program does not exhibit any problem with the MOD call.