Forum Discussion
This is a very old question, and I wonder if the problem ever got worked out.
I never found an answer. I have not gone back to review this issue.
- SpiroTaleski3 years agoValued Contributor
You can use the mod(“%”) operator.
@nmuppa - you mentioned queries.
Exactly what are you looking for here?
“%” is the modulus operator in JavaScript, Ruby, and Python.
If you really mean “queries,” which database system are you querying?
Microsoft SQL Server uses the % operator as well, AFAICR.
Oracle and PostgreSQL use a MOD() function.
MySQL uses a dyadic MOD operator (dividend MOD divisor).
Other DBMSes may use something entirely different, like “remainder”.Or did you really mean you want to implement a modulus function? From scratch?
Related Content
- 2 years ago
- 7 years ago