3 ms·
There is an annoying error: % is not 'modulo', it's the (less useful) remainder operator. julia> -1%9 -1 julia> mod(-1, 9) 8 python >
by patrec 6y ago
There is an annoying error:
% is not 'modulo', it's the (less useful) remainder operator.
julia> -1%9
-1
julia> mod(-1, 9)
8
python
>>> -1%9
8