I'm getting a number in my software and I would like to apply a process if this number is a decimal number.
I would like to round my number to the upper entire number.
For example :
Get number --> expected
1.3 --> 2
1.7 --> 2
2.0 --> 2
2.1 --> 3
Is it possible to create something like this ? I'm looking for splitting function :
x = 3.4
x1 = int(round(x))
returns : 3 and not 4
Thank you by advance, I'm looking if I don't find a solution to my issue.