1 \text{ foot} = 12 \text{ inches}, and so \var{hft} \text{ feet} = \var{hft} \times 12 \text{ inches} = \var{ft2in} \text{ inches}.
Add on the additional \var{hin} \text{ inches}, and the patient's height in inches is \var{totin} \text{ inches}.
Given 1 \text{ inch} = 2.54 \text{ cm}, we must have \var{totin} \text{ inches} = \var{totin} \times 2.54 \text{ cm}.
We could use the calculator for this multiplication but we should also be able to do it without one.
Without a calculator we determine \var{totin}\times 254 (which is \var{precround(hcm*100,0)}) and then move the decimal place so we have two decimal places again (that is \var{hcm} \text{ cm}).
Then converting to metres, by moving the decimal place to the left twice, we get
\text{Height} = \var{hm} \text{ m}.
Now we have the height in metres, we can round to two decimal places (that is, \var{twodec}0 m ).