1int x = 3.14;
2
3Math.round(x);
4//Rounds to nearest int
5Math.ceil(x);
6//Rounds up to int
7Math.floor(x);
8//Rounds down to int
1double test = 0.01;
2// rounds up to the next INTEGER
3test = Math.ceil(test); // 1.0
4
5
6double test2 = 1.0;
7// does not round if decimal is 0
8test2 = Math.ceil(test2); // 1.0