题解 | #取近似值#
取近似值
http://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
def my_func(num):
inte, flo = str(num).split(".")
inte = int(inte)
if int(flo[0]) >= 5:
return inte + 1
else:
return inte
print(my_func(input()))
