How to round up

Hello !
at the moment i’m trying to round a double automatically to the up.
result example do i want :
3.0 → 3
3.1 → 4
3.2 → 4

43.9 → 44
44.1 → 45

But, math.round give this result :

3.0 → 3
3.1 → 3

3.6 → 4
3.7 → 4 …

Does somebody know what to do ?

use Math.Ceiling

2 Likes

Thanks ! it’s work !

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.