12-08-2021, 10:10 PM
Hi everyone,
I'm trying to figure out how to get the remainder when doing binary division on the HP Prime, but I'm not having much luck. There is a picture of what I am trying to do and also here is a link that does the calculation correctly: http://www.ee.unb.ca/cgi-bin/tervo/calc....=d&e=1&m=1 (which has another example).
When dividing it you are XOR'ing the values together and you are left with the remainder in binary. I tried converting the numbers in decimal then to binary but it's giving me the wrong answer along with MOD'ing.
Any help would be appreciated.
I'm trying to figure out how to get the remainder when doing binary division on the HP Prime, but I'm not having much luck. There is a picture of what I am trying to do and also here is a link that does the calculation correctly: http://www.ee.unb.ca/cgi-bin/tervo/calc....=d&e=1&m=1 (which has another example).
When dividing it you are XOR'ing the values together and you are left with the remainder in binary. I tried converting the numbers in decimal then to binary but it's giving me the wrong answer along with MOD'ing.
Any help would be appreciated.