The higher precedence of %/% is documented in ?Syntax. Did something in
particular make you think that it had the same precedence?
Tim
> On 31 Jan 2025, at 13:37, Lionel Fotie via R-devel
> wrote:
>
> Dear R Development Team,
>
> I have encountered an unexpected behavior in R 4.4.1 regarding
Dear R Development Team,
I have encountered an unexpected behavior in R 4.4.1 regarding the precedence
of / and %/%.
Steps to reproduce:
print(2 * 10 / 2 %/% 50)
Expected result:
Since *, / and %/% have the same precedence, evaluation should be left-to-right:
(2 * 10) / 2 %/% 50 # Expected: 0