The president is the person who gets themajority of the electoral votes cast normally 270 (out of 538). That number need not be 270, however, and it won't be if a state fails to choose electors.
The total number cast does not play into what constitutes a majority.
Ah ok, i was misinterpreting your phrasing:
The total number cast does not play into what constitutes a majority.