Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
paradoja
· 12y ago · 0 comments
I guess: -2 % 6 = -2, but -2 %% 6 = 4.
Comments
[–]
btmills
12y ago
Yep. I think the name for it is true or Euclidean modulo. Here's the pull request that introduced it and two other new operators:
https://github.com/jashkenas/coffee-script/pull/2887