I've been writing a program that looks through a set of data and chooses the value that is the highest and all the data is of type double. If for example i have the set of data 31.2, 11.6, and 3.1 my program would choose 31.2, but i need to run a for loop the number of times as the max value in the set of data, and you cant do a for loop 31.2 times. So is there a way to take that number and round it up to the nerest factor of 1? so instead of 31.2 it would be 32?