I feel very silly. Basically I want to divide the result of an addition with \numexpr, such as:
(10 + 5) / 3
The problem is that if I put parentheses there, like \numexpr (10+5)/3 \relax my online editor gives me back a syntax error. The only way I found so far is doing:
\numexpr \numexpr 10+5 \relax / 3 \relax
But honestly it's a pain to read. Is there a better way? Thanks!


\the\numexpr(10 + 5) / 3\relaxprints5an no error... – Phelype Oleinik Jun 18 '20 at 19:21\numexpr (10+5)/3\relaxcannot raise arror. – wipet Jun 18 '20 at 19:30