Hacker News new | ask | show | jobs
by paradoja 4518 days ago
I guess: -2 % 6 = -2, but -2 %% 6 = 4.
1 comments

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