decode nil numbers as 0