if ($post['posts'] > 0) { $post['tip_ratio'] = vb_number_format($post['reputation'] / $post['posts'] * 100, 1); } else { $post['tip_ratio'] = '--'; // shouldn't ever happen, but protect against divide by 0. }