#20 modulo procedure returns incorrect result

closed-fixed
None
5
2011-04-13
2011-04-13
No

The modulo procedure can return the wrong value. This has mainly been noticed in conjunction with the use of the 'random' procedure that generates random number.

(modulo 2147483647 100000) is returning -16353 instead of 83647.

Discussion

  • Kevin Cozens

    Kevin Cozens - 2011-04-13
    • status: open --> closed-fixed
     
  • Kevin Cozens

    Kevin Cozens - 2011-04-13

    r73 | kcozens | 2011-04-13 15:38:27 -0400 (Wed, 13 Apr 2011) | 2 lines

    Fixed num_mod routine which caused errors in use of modulo. (See bug #3286135)

     

Log in to post a comment.