I don't want to display the modulo symbol, I want to programmatically calculate n modulo 3 and display the result.
[Tex/LaTex] How to calculate n modulo 3 in LaTeX
calculations
calculations
I don't want to display the modulo symbol, I want to programmatically calculate n modulo 3 and display the result.
Best Answer
You can also use
\intcalcMod
from the intcalc package:The code that appears in the link posted in a comment, there are some spurious blank spaces producing an undesired indentation of the first line; here's a corrected version: