Copy of Snippet "BMI Calculator"

Another BMI Calculator

{note}Units: {formmenu: default=lbs/inches; kg/meters; name=Units}
{endnote}{if: contains(units, "kg")}{note}kg: {formtext: name=weight; default=; cols=6}
cm: {formtext: name=height; default=; cols=6}
{BMI=10000weight/height/height; trim=yes}
{endnote}Weight: {=weight} kg, Height: {=height} cm, BMI: {=BMI; format=,.1f} kg/m^2
{else}{note}lbs: {formtext: name=weight; default=; cols=6}
inches: {formtext: name=height; default=; cols=6}
{BMI=10000/2.204
weight/height/height/2.54/2.54; trim=yes}{endnote}Weight: {=weight} kg, Height: {=height} cm, BMI: {=BMI; format=,.1f} kg/m^2{endif}