CalculateBMI is used to calculate the body mass index based on height and weight.
Add this line to your application's Gemfile:
gem 'calculate_bmi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install calculate_bmi
Use the CalculateBmi::Calculate.us_calc([feet,inches], weight)
please use feet, inches and pounds (if height is 6'0" please enter height as [6,0]
).
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/calculate_bmi. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.