modulo function vs percent-sign operator

CODAP Forums CODAP Help Forum modulo function vs percent-sign operator

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6799 Score: 0
    Andrew Ross
    Participant

    This page https://codap.concord.org/help/functions

    indicates that modulo(caseIndex,3) should work, but there isn’t actually a modulo or mod function with that name. It does seem that the percent-sign operator works: 17 % 5 gives 2, for example, and 65535 % 100 gives 35. I know adding a modulo() or mod() function to CODAP itself would take some time, but perhaps instead the help document could just be updated to include a pseudo-entry under modulo() saying to use % instead and giving an example or two. That way, someone searching for the word modulo would find some help. And, update the modulo(caseIndex,3) to be caseIndex % 3.

    Thanks again for a great software package!

    #6800
    Bill Finzer
    Keymaster

    And thanks again to you, Andrew, for a great suggestion!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CODAP Help Forum’ is closed to new topics and replies.