Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript
branch: master

This branch is 1 commit ahead, 5 commits behind tangosource:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
README.md
package.json

README.md

Body Mass Index

BMI Formula

BMI = weight / height * height

Example

 var BMI = require("./bmi").BMI;

 BMI.set({kg:80, m:1.8}); 

 BMI.get("index"); // 24.691358024691358
 BMI.get("type");  // 'Normal'
 BMI.get("prime")  // 0.9876543209876543

Or

 var BMI = require("./bmi").BMI;

 BMI.set({lb: 120, in: 63})

 BMI.get("index"); // 21.256827804660904
 BMI.get("type");  // 'Normal'
 BMI.get("prime")  // 0.8502731121864362
Something went wrong with that request. Please try again.