Skip to content

Instantly share code, notes, and snippets.

@shibukawa
Created January 22, 2013 23:57
Show Gist options
  • Save shibukawa/4600113 to your computer and use it in GitHub Desktop.
Save shibukawa/4600113 to your computer and use it in GitHub Desktop.
$ node
> (-90) % 360
-90
$ python
Python 2.7.3 (default, Dec 3 2012, 16:37:49)
[GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> (-90) % 360
270
$ irb
>> (-90) % 360
=> 270
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment