HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by paradoja | Hacker News Reader
Parent
Full thread
paradoja
·
I guess: -2 % 6 = -2, but -2 %% 6 = 4.
View on HN
btmills
·
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
Reply on news.ycombinator.com