How to return a number rounded to the next integer

Hope the question makes sense, I want to round up numbers to the highest integer.

So for example:

2.4 = 3;
345.3 = 346;
10.8 = 11;

Thanks in advance!

Math.Ceiling() will round any floating point number to the next integer (i.e 7.03 => 8)

Math.Floor() will do the opposite (i.e 7.74 => 7)

or, for rounding,

use Math.Round()

Assuming you’re using C#, you can view it in detail here:

Ceiling

Floor

Rounding