Created
May 17, 2021 06:17
-
-
Save guitarrapc/a0cf54334a77a8917cdfb6cfbf632fa9 to your computer and use it in GitHub Desktop.
mod with negative value. https://shunirr.hatenablog.jp/entry/20120409/1333993409
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
(-5 % 3).Dump("-5 % 3"); // -2 | |
(5 % -3).Dump("5 % -3"); // 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment