Run
import math x = math.nan result = math.ceil(x) print('ceil(x) :', result)
Output