Created
August 27, 2016 23:04
-
-
Save jmahc/bea39a0b823d29016e7247e78f8f55cf to your computer and use it in GitHub Desktop.
Gets a ratio using javascript.
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
function getRatio(a, b) { | |
return Math.min(a, b) / Math.max(a, b); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment