https://note.nkmk.me/python-round-decimal-quantize/https://note.nkmk.me/python-math-floor-ceil-int/数値を 5刻みで繰り上げnum = 11.4 num = int(num + (5 - num % 5) % 5) print(num) # 15