int percentage = RoundToNearest((float(item_info[0][VOTEINFO_ITEM_VOTES]) / float(num_votes)) * 100); PrintToChatAll("Vote passed! %i%% voted yes.", percentage);