I am trying to round up a value to the nearest whole number. For example, 2.1 round up to 3; 2.9 round up to 3. I used math.round, but for 2.1, I got 2. Does anyone know how to round up to nearest whole number?
Math.round will wok like if value <0.5 it will take previous value, if decimal value >0.5 then it will consider the next value.
this will always return next whole number.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.