How about one that can calculate BMI?

It is actually the weight divided by square of the height. It is useful for finding out how obese a person is.

Comments

wrunt’s picture

Status: Active » Closed (won't fix)

Yes, you could do that. If you have field_weight, and field_height, then your computed field code would be:

$node_field[0]['value'] = $node->field_weight[0]['value'] / pow($node->field_height[0]['value'], 2);