You could try using the vb:number tag. It takes two arguments, a number and the number of decimal you want to display.
Or in the plugin you'd do something like:
PHP Code:
$bmi = vb_number_format((($userinfo['field7']/2.2) / ($userinfo['field8']/100)*2), 2);
(if I converted your template code correctly - I'm not sure I got the parens in the right places).
and then in the template code:
PHP Code:
$templater->register('bmi', $bmi);
and {vb:raw bmi} in the template.