In my TI BASIC program on TI 84 plus C, I have a line that says remainder((A/X),2)
. This creates a domain error every time the program runs. In the case of my tests, A/X is 4. remainder(4,2)
works. 4->Z remainder(Z,2)
works. If I pause the program and display (A/X) immediately before the remainder line, the result is certainly 4. (A/X)->Z remainder(Z,2)
does not work.
What could possibly be wrong with my code?
link to the code:
https://drive.google.com/open?id=0B07yHA0-EssLUjZOc0dxektwbUU
https://drive.google.com/open?id=0B07yHA0-EssLSFlNcFNWZm0zNDQ