Challenge
https://ampscript30.com/ampscript-challenge-day6/
To display the calculated BMI for customers on individual emails.
Solution
%%[
SET @weight = Weight
SET @height = Height
SET @heightcal = Multiply(@height, @height)
SET @BMIcal = Divide(@weight, @heightcal)
SET @BMI = FormatNumber(@BMIcal, 'N1')
]%%
Based on your weight and height, your Body Mass Index (BMI) is %%=v(@BMI)=%%.

Preview

Summary
FormatNumber(Value to receive the specified formatting, Valid format type value) function formats number values by rounding the numbers to fewer decimal places.