Python 3.6 has several functions that will “convert floating-point numbers to integers, each with their own uses:
myInt = int(myFloat)
This truncates the decimal points, effectively rounding numbers towards zero
myInt = round(myFloat)
Round to nearest integer – with 0.5’s rounding to the even choice 0.5–>0 , 1.5–>2, 2.5–>2, 3.5–>4
Apparently, pupils in maths are taught to always round with 0.5s up. (https://www.bbc.com/education/guides/zw64jxs/revision/2)
I prefer the Python method as, over a large data set, the rounding up/down of 0.5s will cancel
myFloat2 = round(myFloat,0)
Do not use a second parameter of 0 with the round function as this will return another (rounded) floating point number
myInt = math.floor(myFloat)
Round a number down
myInt = math.ceil(myFloat)
Round a number up
Which, or all, of these, is expected is open to the exam and coursework writers’ interpretation of the course specification.