Skip to content

mention the JS modulo bug #80

waldyrious opened this Issue Jun 6, 2011 · 1 comment

2 participants


The implementation of the modulo operator (%) in Javascript is nonstandard and will return unexpected results for negative values (see I think this tidbit fits well with the JS-Garden's aim to document the quirky parts of JS and help avoid common mistakes and subtle bugs. Would you include this?


Hi - please feel free to contribute a pull request detailing the bug. We can definitely include - perhaps as a footnote?

@timruffles timruffles closed this Apr 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.