Created
June 18, 2018 01:21
-
-
Save quickshiftin/42f14b1cbccb7df2ecce31efdede33b7 to your computer and use it in GitHub Desktop.
Calculate your cat's FBMI
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
/** | |
* https://www.embracepetinsurance.com/waterbowl/article/measuring-my-cats-body-mass-index-the-fbmi | |
* | |
* ribCage float Circumference of your cat's rib cage in inches. (The level of the 9th rib is ideal). | |
* legLength float Length in inches of your cat's rear leg from knee to ankle. | |
* | |
* If the result is >= 42, your cat is overweight! | |
*/ | |
function catBmi(ribCage, legLength) { | |
return (ribCage / .7062 - legLength) / .9156 - legLength; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment