I need something like this that works normal, instead of rounding one way. For example:
print(math.floor(4.2)) returns 4. print(math.ceil(4.2)) returns 5.
Is there a function or a way so that it rounds up or down accordingly?
Example:
1.2 --> 1
2.5 --> 3
3.7 --> 4
