def T(Y): if Y >= 0: return Y*1 # そのまま else: return Y*-1 # マイナスを反転 def MR(x): if x >= 0: return int(x + 0.5) else: return -int(T(x) + 0.5) print(f'{MR(3.12)}')
To embed this project on your website, copy the following code and paste it into your website's HTML: