DickBaldwin
11-05-2007, 04:43 PM
If you call the IEEERemainder function to get the remainder of 7/2, the value returned is -1, which is incorrect.
If you call the IEEERemainder function to get the remainder of 8/3, the value returned is -1, which is incorrect.
If you call the IEEERemainder function to get the remainder of 5/2, the value returned is 1, which is correct.
Sometimes the function returns the correct answer and sometimes it returns the wrong answer. On the basis of a very limited amount of experimentation, it seems to return the correct answer for those cases where the correct answer is 0.
Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm
If you call the IEEERemainder function to get the remainder of 8/3, the value returned is -1, which is incorrect.
If you call the IEEERemainder function to get the remainder of 5/2, the value returned is 1, which is correct.
Sometimes the function returns the correct answer and sometimes it returns the wrong answer. On the basis of a very limited amount of experimentation, it seems to return the correct answer for those cases where the correct answer is 0.
Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm