Skip to content

Instantly share code, notes, and snippets.

@ChrisWhealy
Created April 29, 2016 17:13
Show Gist options
  • Save ChrisWhealy/49c133e7226cbd4d089d35108d4cedd9 to your computer and use it in GitHub Desktop.
Save ChrisWhealy/49c133e7226cbd4d089d35108d4cedd9 to your computer and use it in GitHub Desktop.
Mindshift: Part 19, sample 11
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