Created
April 29, 2016 17:13
-
-
Save ChrisWhealy/49c133e7226cbd4d089d35108d4cedd9 to your computer and use it in GitHub Desktop.
Mindshift: Part 19, sample 11
This file contains 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
div_result(DIV(EIGHT)(FIVE)); // -> {isPos: true, quot : 1, rem : 3} | |
div_result(DIV(MINUS_EIGHT)(FIVE)); // -> {isPos: false, quot : 1, rem : 3} | |
div_result(DIV(EIGHT)(MINUS_FIVE)); // -> {isPos: false, quot : 1, rem : 3} | |
div_result(DIV(MINUS_EIGHT)(MINUS_FIVE)); // -> {isPos: true, quot : 1, rem : 3} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment